I was trying to download a file from a bucket on Amazon S3. I was wondering if I can write a javascript to download such a file from a bucket. I was googling it, but couldn't find any resources that can help me do that.
Some steps in mind are: authenticate Amazon S3, then by providing bucket name, and file(key), download or read the file so that I can be able to display the data in the file.
Thanks,
Maybe you can use AWS Node.js API:
I came here looking for away to download a s3 file on the client side. Here is how I solved it:
As, I can not store my s3 auth keys on client side, I used my server-side scripts to generate a pre-signed url and send it back to client like:
Use this URL in the front-end to trigger download: