4
votes

My google app engine app allows users to upload images to Google Cloud Storage. I use python on the server.

What is the easiest way to allow users to download the images stored in Google Cloud Storage with program. Javascript on the client side bars users from saving downloaded files.

The python boto library seems like overkill. I would like to display a list of images a user is allowed to download, with a 'download' button beside it. Thanks!

1

1 Answers

3
votes

Whatever logic your app uses to determine which images the currently logged-in user is allowed to download, you just need to put on each corresponding "download button" a signed url for the image within (assuming HTML5) an <a href=[[signed url] download=[[filename]]>[[image name/description]]<a> tag.