Hi, I have an ejected Expo app and am using ImagePicker → ImageManipulator to get a file://…uri
I’m them using a firebase documentation trick to upload the raw data to an S3 bucket:
return fetch(uri)
.then(file => file.blob())
.then(blob => {
return fetch(signedUploadUrl, {
method: 'PUT',
body: blob,
headers: {
'Content-Type': 'application/jpeg'
}
});
});
See Snack: https://snack.expo.io/@mark-pod/upload-issue
Since 31.0.0 this has stopped working on both iOS and Android, see errors:
Android
[15:50:42] Network request failed
- node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js:504:29 in onerror
- node_modules/event-target-shim/lib/event-target.js:172:43 in dispatchEvent
- … 8 more stack frames from framework internals