Upload images / videos to Google Cloud using Google App Engine

I read a question from Submitting Images to Google Cloud Storage using the Google App Engine .

However, the codes are in response to the fact that the file is first uploaded to Blobstore, so the file cannot be exceeded 32 MB.

How can I upload a large file to Google Cloud Storage directly?

I checked the official document Upload Objects , but I still don’t know how to write a form to publish a large file.

+4
source share
2 answers

easy since 1.7.0

upload_url = blobstore.create_upload_url('/upload_handler', gs_bucket_name='my_bucket') 

Upload directly to Google Storage and return the blob keys indicating download to Cloud Storage.

+11
source

upload_url = blobstore.create_upload_url ('/ upload', gs_bucket_name = 'mybucketname')

receives the download with the blob key in cloud memory, but it still puts the downloaded file in blobstore.

+2
source

All Articles