1
votes

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.

1

1 Answers

1
votes

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.