itinance / itinance/react-native-fs

iOS uploadFiles error handling ignores error

Open
#1,201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

If I try to upload a file with really bad network connection, the `dataTaskWithRequest` fails with the following error:

![image](https://github.com/itinance/react-native-fs/assets/19759103/2fc5fe3e-ff02-4428-a7a2-86e14251412c)

The error is ingored and calls the `completeCallback` and therefore my app thinks the file has been uploaded although it has failed. I think the `errorCallback` should be called in this case.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.