[expo-file-system] uploadAsync() not working

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
IjzerenHeincommented, Oct 7, 2020

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 uploadAsync issue. This issue has not been resolved in Snack. @brentvatne

1reaction
barthapcommented, Sep 23, 2020

The 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

expo-file-system: FileSystem.uploadAsync errors not from ...
When using the FileSystem.uploadAsync to send the file up to the server, if the user enters an incorrect URL, the response body is...
Read more >
FileSystem
downloadAsync(). Download the contents at a remote URI to a file in the app's file system.
Read more >
React Expo: FileSystem.uploadAsync not sending request ...
I am developing an app on react expo, and using Filesystem.uploadasync for file uploading and other data. But filesystem is not sending ...
Read more >
Callback support for FileSystem.uploadAsync | Voters - Expo
I am uploading videos to S3 that are recorded using Expo Camera, and can upload ... during file upload for user feedback, which...
Read more >
expo-file-system
Provides access to the local file system on the device. ... Start using expo-file-system in your project by running `npm i expo-file-system` ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found