RNFetchBlob
.config({
addAndroidDownloads: {
useDownloadManager: true,
//changes here
path: RNFetchBlob.fs.dirs.SDCardApplicationDir + '/build_change_philippines.zip',
description: 'Images Zip',
mediaScannable: true
}
})
.fetch('GET', 'http://bccms.naxa.com.np/core/project-material-photos/1')
.then((resp) => {
const sourcePath = resp.path();
const targetPath = resp.path().replace('.zip', '');
unzip(sourcePath, targetPath)
.then((path) => {
console.log(`unzip completed at ${path}`);
})
.catch((error) => {
console.log(error);
});
});
For big file size (above 80 megabytes) above snippet of code starts the download but shows Untitled and no progress occurs and then displays Unsuccessful. The download starts again automatically and the cycle keeps on going. But the same code downloads small zip files easily.