-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Firebase Initial Uploaded Image results in "Client uploaded to the wrong offset (262144 instead of 0)" #180
Comments
@kenmaca , thanks for the great information, I'll look into it once I have time 👍 |
Besides, if you're interested in tracing the log you may turn on the logs (there will be a tons). By uncomment these lines : Turn on XMLHttpRequest logs : https://github.com/wkh237/react-native-fetch-blob/blob/master/src/polyfill/XMLHttpRequest.js#L15 Turn on Blob polyfill logs https://github.com/wkh237/react-native-fetch-blob/blob/master/src/polyfill/Blob.js#L15 |
@kenmaca , there has been a fix launched in |
Thanks @wkh237 for the follow up! Unfortunately, that didn't fix my issue. But, I was able to apply a quick fix on my end that got everything working (which may help you fix this bug with the Blob polyfill). Basically adding So, I have a feeling that the reason why smaller files work is because Hope this helps! (And thank you so much for this amazing module) |
@kenmaca , thanks so much for the detailed information 👍 I'll look into this issue and find an appropriate way to fix it. Will update there once I have any progress 😄 |
@kenmaca , I've added a check mechanism to |
@kenmaca reading the e-mail thread at https://groups.google.com/forum/?fromgroups#!topic/firebase-talk/ejc4hbwUNy4 solved the issue for me. |
Following the example here: https://github.com/wkh237/rn-firebase-storage-upload-sample/blob/master/index.common.js
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
The text was updated successfully, but these errors were encountered: