Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

RNFetchBlob.wrap(image.path) uploads JSON not file #709

Open
stevencurtis opened this issue Jun 10, 2018 · 0 comments
Open

RNFetchBlob.wrap(image.path) uploads JSON not file #709

stevencurtis opened this issue Jun 10, 2018 · 0 comments

Comments

@stevencurtis
Copy link

I'm using

  var blob = new Blob(  [RNFetchBlob.wrap(image.path)] , {
       type: 'image'
     });

To upload to Amazon S3 from iOS. But this uploads JSON data rather than the file itself (i.e. 160 bytes!). Any ideas?

{"_data":{"blobId":"3dce8216-b17a-4423-beda-ecf4f189ad14","offset":0,"size":160,"type":"binary/octet-stream"}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant