This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Are there s3 examples? #354
Open
Description
Is there a way to use this as a wrapper for s3?
I'm trying to get binary data and upload it to my bucket:
const s3 = new AWS.S3();
const params = {
Bucket: 'mybucket',
Key: 'myfile.ext',
Body: file,
ACL: 'public-read',
};
s3.upload(params, (err, data) => {
console.log(err, data);
});
I've tried using streams with data chunk, the base 64 with content encoding etc. I see that fetch will convert a base64 to binary on upload, but how do I ad hoc this into the aws sdk for react native?