Closed virenradadiya closed 1 year ago
Hello and thanks for reporting,
please try using the latest version of the package.
Also, for your purpose you probably don't need to use the copyTo
option.
Also, please make sure that you're using the fetch
that comes with react native, not something else.
If that doesn't work, I'm afraid I cannot help unless I have the code - the issue is outside of this package and without code that I can run locally I cannot say more.
Thank you 🙂
@vonovak can you please suggest what is the issue with axios? I've spotted that in my case axios doesn't work either, even though request with native fetch
was successful.
Bug report
Sometimes I am not able to upload PDFs on android using REST API(Formdata) but in IOS it's working fine. I am getting a network error when I am uploading any file the first time it's working fine but when I am trying to upload multiple times at that time I am getting a network error.
Describe what you expected to happen: I am simply trying to upload PDF using fetch but sometimes I am getting a network error in the catch block. I am trying with the XMLHttpRequest and Axios also but the same issue happens.
CODE Example
i am padding form data like :
Error
Environment info
npx react-native info
output:library version: v8.1.1
iOS / Android version: x.x