May U
May U

Reputation: 23

AWS download files from S3 in web browser

I am a newbie to AWS and one of the tasks I have is to figure out how to download MSIs, ISOs stored in S3 through a web browser. I read that I could use CLI behind the scenes. So if a customer clicks on one download; the app would make a request to S3 using one of the commands and that would download the file lets say through Google Chrome or IE (Please correct me if I'm wrong in the usage of CLI).

Now if the download stops for some reason due to internet failure; is there a way to resume the download? How do I get a download done through a client.

Thanks in advance for helping. Unfortunately the AWS links gave me very little information so seeking help here! May

Upvotes: 2

Views: 12392

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269091

Files stored in Amazon S3 can be directly accessed via web browser, just like clicking a link on any website.

If the files are marked as publicly-accessible, anyone with the link can download the file.

If you wish to limit access to the files, your application can generate a pre-signed URL that will work for a limited time period that you specify (eg 5 minutes). Users can use/click that link to download the file within that time period.

You can also download files using the AWS Command-Line Interface (CLI), which has Copy and Sync commands. This would, however, require installation of the CLI on the user's computer. This is great if they are regularly download files or if you wish to automate the download (eg every hour or daily).

If you wish to explore AWS, sign-up for an account and make use of the Free Usage Tier, which lets you try some services for no charge.

Upvotes: 2

Related Questions