benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
398 stars 151 forks source link

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

Open edoantonioco opened 5 years ago

edoantonioco commented 5 years ago

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.

lunatolun commented 3 years ago

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
}