Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible for users to upload to google cloud storage?

I'd like to create an object, give my users an upload url, and let them upload data. The resulting object must be public-readable. Is this possible with google cloud storage? If so, is it possible through google app engine, and where can I find documentation and/or examples for doing it?

like image 413
shino Avatar asked Dec 05 '22 12:12

shino


1 Answers

To have a user upload directly to Google Cloud Storage, you can use the Signed URLs feature. This allows you to grant access to issue a PUT request to an object to a single user.

If you're using Python, there is a python example demonstrating signed URLs.

like image 85
jterrace Avatar answered Dec 22 '22 00:12

jterrace