What happens if I switch off internet connection during FileSystem.uploadAsync()?

Please provide the following:

  1. SDK Version: 43
  2. Platforms(Android/iOS/web/all): Android

Hi, I’m using FileSystem.uploadAsync from expo-file-system to upload files.

And I was wondering what happens if, during the upload, I switch off the internet connection and switch it back on again.

Does it resume the upload?

Does the app being foreground/background affect what would happen?

Hey @rakshith.aloori, have you tested it?

Yup, I did.

Turns out the upload fails when you restart the internet connection, regardless of whether the app is foreground/background.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.