react-native upload image react-native-fetch-blob

I'm trying to upload a file from mobile (iOS and Android) to Amazon S3.

I've tried various things using react-native-fetch-blob.

The latest idea is to use react-native-fetch-blob readfile

RNFetchBlob.fs.readFile(image.path, 'base64').then(data => //upload here );

but unfortunately this uploads a base64 version of the file, which does not display on the web.

How can I upload a simple image?

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

Chart JS +ng2-charts not working on Angular+2