itinance / itinance/react-native-fs
DownloadFile returning status code 400 after redirect on ios 13, while working on ios 12
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I'm using RNFS.downloadFile to call an url which redirect me to an other url (with 302) to download a file.
On ios 12 it is working well, however on ios 13 (13.4) it returns me a status code 400.
```javascript
const CallWebApiDownload = async (
options: IServiceArguments,
destinationPath: string,
onProgress: (res: any) => void
) => {
const loginReducerParameters = await getApiCallParameters(options);
const requestId = getRequestId();
const res = RNFS.downloadFile({
fromUrl: options.path,
toFile: destinationPath,
headers: getHeader(loginReducerParameters, requestId),
progress: onProgress,
progressInterval: 10,
progressDivider: 5
});
await res.promise
return res
};
```
this happens both on simulator and real device.
I managed to make it works using rn-fetch-blob.
Anyone having the same problem ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.