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.
Firebase Initial Uploaded Image results in "Client uploaded to the wrong offset (262144 instead of 0)" #180
Closed
Description
Following the example here: https://github.com/wkh237/rn-firebase-storage-upload-sample/blob/master/index.common.js
Blob.build(
RNFetchBlob.wrap(
this.props.path
), {
type: 'image/jpg;'
}
).then(blob => {
let task = Firebase.storage().ref().child(
`images/${
this.props.path.split('/').pop()
}`
).put(blob, {
contentType: 'image/jpg'
});
...
on React Native 0.36.0 and Firebase results in a Client uploaded to the wrong offset (262144 instead of 0)
error returned from Firebase.
This only happens for a larger image on an app that has never uploaded anything successfully before. If I try to upload a photo of a solid colour (that I assume has a smaller file size), it works and allows all subsequent uploads (regardless of size) to work as well.
The same code was working without these issues two weeks ago.
Also, some other people are having the same issue: https://groups.google.com/forum/#!msg/firebase-talk/ejc4hbwUNy4/A4JvNCvIBwAJ