Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Only 9 kB out of 5.2 MB file uploaded to bucket

adamk
New Member

I created a bucket to upload my geojson file and it is 5.2 MB in total and it even says that in the Google Cloud Bucket "Size" but whenever I download it from the browser or try to use it in my code it only has the first 9 kB of the file. I tried to upload it via the command line but for some reason I keep getting "You are attempting to perform an operation that requires a project id, with none configured. Please re-run gsutil config and make sure to follow the instructions for finding and entering your default project id." even though I authenticated and set the project id already.

0 1 127
1 REPLY 1

Hi @adamk,

Welcome to Google Cloud Community!

It looks like you're dealing with a couple of issues. First, for the partial file download, make sure to check the file size in the Cloud Console to confirm it is uploaded completely.

For the command-line error, try running gsutil config again to ensure your project ID is set up correctly. You can also set the project directly using gcloud config set project [PROJECT_ID].

After that, give your upload another shot with gsutil cp. Also, when downloading from the browser, clear your cache or use an incognito window to avoid cached files.

I hope the above information is helpful.