Could not store file in a specified path
Opened this issue · 1 comments
My environment
react-native: 0.51.0
react-native-fetch-blob: 0.10.8
react-native-fs: 2.8.3
I was trying to download a file using below snippet in iOS iPad
RNFetchBlob.config({
path: `${fs.dirs.DocumentDir}/file-name.pdf`
})
.fetch('GET', downloadUrl, {
'Cache-Control': 'no-store'
})
.then(res => {
console.log('The file saved to ', res.path())
})
I was getting response path as like this /var/mobile/Containers/Data/Application/DD8007B7-1E83-4699-8063-9EF1AAEC04924/Documents/file-name.pdf.
When I try to see this in explorer or documents I could not find. What was I missing. I tried with 'Cache-Control': 'no-store' and fileCache : false But I could not find it in my file explorer
My environment
react-native: 0.51.0 react-native-fetch-blob: 0.10.8 react-native-fs: 2.8.3I was trying to download a file using below snippet in iOS iPad
RNFetchBlob.config({ path: `${fs.dirs.DocumentDir}/file-name.pdf` }) .fetch('GET', downloadUrl, { 'Cache-Control': 'no-store' }) .then(res => { console.log('The file saved to ', res.path()) })I was getting response path as like this
/var/mobile/Containers/Data/Application/DD8007B7-1E83-4699-8063-9EF1AAEC04924/Documents/file-name.pdf.When I try to see this in explorer or documents I could not find. What was I missing. I tried with
'Cache-Control': 'no-store'andfileCache : falseBut I could not find it in my file explorer
Hi.
Did you resolve your issue? I'm getting the same in iOS, in Android I was handled according to docs, even with moving a file to the specified folder