Reputation: 163
I have developed an application using Cloud ML Engine that recognizes images from uploaded images. I want to test the application and allow specific people to upload images for the next 24 hours. Not all users have a Google Account. How should you have users upload images?
Have users upload the images to Cloud Storage. Protect the bucket with a password that expires after 24 hours
OR
Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.
Upvotes: 1
Views: 73
Reputation: 1530
The best option will be to generate signed url for file upload that expires.
You can check example in python how to do it or example server side app in node.js
It is also important to Configure Cross Origin Resource Sharing (CORS) for the bucket, that will be used to upload.
Upvotes: 1