Closed smilechun closed 8 years ago
The problem is solved. I forgot to add the following statements. window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest window.Blob = Blob
but another error thrown:
ExceptionsManager.js:61 Firebase Storage: An unknown error occurred, please check the error payload for server response.
After the investigation, it is the same problem as Crashes with larger images
@smilechun , thanks for report, we're working on the issue 😄
@smilechun where those images that you uploaded to Firebase from the CameraRoll on a device?
I've not been able to get images from my CameraRoll to upload to Firebase. I filed an issue here https://github.com/wkh237/react-native-fetch-blob/issues/109
Once the upload statement fire, it return: Possible Unhandled Promise Rejection (id: 0): Firebase Storage: Invalid argument in
put
at index 0: Expected Blob or File.Please help.
code snippet:
let images = this.state.images; let uri = images[0].path.uri; let type = uri.substr(uri.lastIndexOf('.') + 1); let rnfbURI = RNFetchBlob.wrap(uri);