[expo-file-system] uploadAsync() not working
See original GitHub issueHello, folks. Hope this is the right place to post about this.
I have been having a great deal of difficulty getting the uploadAsync() function to work - invoking it on iOS consistently yields a response that returns an empty body.
I noticed issue #9165 that mentions this issue, and PR #9166 that fixed the issue - I have upgraded to the latest Expo SDK 39, but am still facing this issue. At this point, I am not sure if it is a recurring bug or if I am invoking the function wrong, though I am following the documentation carefully.
As for my use case, I am following a procedure similar to that outlined in this wonderful example here to record an audio message - I am now trying to use uploadAsync() to upload said audio file to a server.
Just wanted to ask, is the issue with the function confirmed to have been fixed? Also, is there anywhere I can find some sample usage of this functionality to ensure I am following it correctly? Been stuck at this for a good while and would appreciate any advice.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Related StackOverflow Question
Hi! I’ve verified this on Snack and confirmed that everything works correctly when using SDK 39.
There was however an issue with Snack, which when changing the SDK version would not always update the QR code and you sometimes unknowingly used a different SDK version. I believe this is the reason why it appeared to not work on Snack, as you were unknowingly still using SDK 38, which contained the
uploadAsyncissue. This issue has not been resolved in Snack. @brentvatneThe issue was fixed then, but it seems that something broke again in the meantime, because this demo also stopped working. I’ll investigate it soon.