Skip to content
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
Open
@jmparsons

Description

@jmparsons

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions