react-native-aws3 icon indicating copy to clipboard operation
react-native-aws3 copied to clipboard

Is there going to be support for obtaining the files from s3 to my device?

Open edoantonioco opened this issue 6 years ago • 1 comments

Hello. This library is very cool, but checking documentation and its source code it seems to be that it only supports to upload files to the s3 bucket, but not a way to obtain them into the device.

Is there going to be support for something like that? Because both are needed in day to day apps.

edoantonioco avatar Feb 23 '19 15:02 edoantonioco

upload gives you a URL back, and you can save and use that URL to show the image.

try {
  const upload = await RNS3.put(file, options)
  return upload.body.postResponse.location // this gives you the URL
} catch (e) {
  //handle err
}

lunatolun avatar Nov 11 '20 20:11 lunatolun