SDK Version: 42
Expo File System: 11.1.3
Platform: iOS
Hello, when uploading files with FileSystem.uploadAsync() the upload fails sometimes with the error
Error Uploading: [Error: Unable to upload the file: 'Error Domain=NSURLErrorDomain Code=-997 "Lost connection to background transfer service" UserInfo={NSErrorFailingURLStringKey=<REDACTED>, NSErrorFailingURLKey=<REDACTED>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"BackgroundUploadTask <A58C81B8-D52F-461C-BB53-2AFB5BAE5E3B>.<5>"
), _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundUploadTask <A58C81B8-D52F-461C-BB53-2AFB5BAE5E3B>.<5>, NSLocalizedDescription=Lost connection to background transfer service}']
My code looks like this:
FileSystem.uploadAsync(
`${Config.API_URL}/video`,
this.uri,
{
headers: {
"Content-Type": "multipart/form-data",
},
uploadType: FileSystemUploadType.MULTIPART,
fieldName: "video",
parameters: ...
}
);
I am wondering why this error occurs very inconsistently and how deal with it.