I have read the question from Sending images to google cloud storage using google app engine.
However, the codes in the answer that the file will upload to Blobstore first, so the file can not be exceeded 32MB.
How can I upload the large file to Google Cloud Storage directly?
I have checked the official document Upload Objects, but I still don't know how to write a form to post a large file.
easy since 1.7.0
upload_url = blobstore.create_upload_url('/upload_handler', gs_bucket_name='my_bucket')
Will upload straight to Google Storage and return you blob keys that point to the uploads in Cloud Storage.
upload_url = blobstore.create_upload_url('/upload', gs_bucket_name='mybucketname')
does get the upload with the blob key to the cloud storage but it still puts the uploaded file in the blobstore as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With