I cannot upload large (> 2GB) files to the Google Cloud Storage web UI
Asked Answered
P

2

4

I have been using the Google Cloud Storage Manager link on the Google APIs console in order to upload my files.

This works great for most files: 1KB, 10KB, 1MB, 10MB, 100MB. However yesterday I could not upload a 3GB file. Any idea what is wrong?

What is the best way to upload large files to Google Cloud Storage?

Preciosity answered 25/1, 2013 at 21:12 Comment(1)
Another way to upload large files can be seen [here][1] [1]: #26137539Henze
P
5

The web UI only supports uploads smaller than 2^32 bytes (4 GigaBytes). I believe this is a javascript limitation.

If you need to transfer many or large files consider using gsutil:

  1. GSUtil uploads and downloads any size file.
  2. GSUtil resumes uploads and resumes downloads that fail part way through.
  3. GSUtil calculates the MD5 checksum to verify the contents of each file transferred correctly.
  4. GSUtil can upload and download many files at the same time.
    • gsutil -m cp /path/to/*thousands-of-files* gs://my-bucket/*
Preciosity answered 25/1, 2013 at 21:12 Comment(1)
gsutil is good, but web interface can handle files > 2GB, and note that 2^32 is 4GB, not 2.Remington
R
4

In my experience, the accepted answer is not correct - maybe it was but something has changed.

I just uploaded a file of size 2.2GB to GCS using the web interface on Chrome 42 on Windows 8.1.

I would also point out that the question is about files > 2GB, and the answer mentions 2GB, but gets that from 2^32, which is 4GB, not 2. So maybe the limit really is 2^32 (4GB) - I haven't tried anything that big.

(It is still a good idea to use gsutil for large files.)

Remington answered 20/4, 2015 at 20:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.