How to actually download a file from s3 using AWS Amplify in ReactJS

133
May 05, 2019, at 07:30 AM

How do I download a file using AWS-Amplify in ReactJS? Storage.get() returns the full url to the file, and Storage.get(,{download:true}) returns the body of the file in Uint array. Is there an attribute in Storage.get() that directly downloads the file to the local browser?

Thank you.

Rent Charter Buses Company
READ ALSO
Route to a html file after png image displayed

Route to a html file after png image displayed

In my javascript file i want as user clicks on correct answer as C after which an image "5png" is displayed ,now after image is displayed then route should happen to followup

134
Node oracledb execute pl/sql function

Node oracledb execute pl/sql function

I created something like below:

152
can't Preview the application in aws cloud9 when uses express application generator

can't Preview the application in aws cloud9 when uses express application generator

I am using AWS cloud 9when I use express application generator, I can't preview my application

142
Stringifying JSON data loses object I'm trying to stringify

Stringifying JSON data loses object I'm trying to stringify

I'm new to NodeJS and I'm trying to learn it a bit better by writing a Discord botBut I'm having an issue with stringifying an object to JSON

121