Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Could not store file in a specified path #724

Open
Dineshchitta opened this issue Aug 10, 2018 · 1 comment
Open

Could not store file in a specified path #724

Dineshchitta opened this issue Aug 10, 2018 · 1 comment

Comments

@Dineshchitta
Copy link

Dineshchitta commented Aug 10, 2018

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

@eyale
Copy link

eyale commented Feb 22, 2019

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants