rn-fetch-blob
rn-fetch-blob copied to clipboard
Video File not found in IOS `
RNFetchBlob.config({
path:RNFetchBlob.fs.dirs.DownloadDir+"Developer.mp4",
timeout: 7000,
}).fetch(
'GET',
url, {
'Authorization': 'Bearer ' + userToken,
}).then((res) => {
RNFetchBlob.fs.exists(res.path())
.then((exist) => {
// console.warn(`file ${exist ? '' : 'not'} exists`)
})
Alert.alert(res.path())
}).catch((res) => {
})
Above is the code that i am using but i am unable to find the download file,
res.path() is showing like this
Can anybody guide me what's wrong in Android downloading is working file
Getting the same problem with "react-native": "0.59.5" and "rn-fetch-blob": "^0.10.15"
Hi @naxir , I got the same error. Did you resolve this error?
Hi @naxir , I got the same error. Did you resolve this error?
No @hvlong
@hvlong in android it's working fine
Look at this documentation https://github.com/joltup/rn-fetch-blob/wiki/File-System-Access-API#dirs and try using a different directory
@JerakRus have you tried this??
@naxir I had no such problem. I just went in search of a solution to another problem and saw that you are using a non-existing directory on Ios. Gave a link with a detailed description. I work on it myself, everything works =)
@JerakRus Thanks Will look into this You are the boss
Hi @naxir Any update on this issue? Facing same issue
Any update for this issue?