Rn-fetch-blob: Video File not found in IOS `

Created on 1 Jul 2019  路  8Comments  路  Source: joltup/rn-fetch-blob

          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,
IMG_0458
res.path() is showing like this

Can anybody guide me what's wrong
in Android downloading is working file

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings