[Android][DownloadManager] Unsupported path DocumentDir
See original GitHub issueHi,
It appears that it is impossible to download a file to DocumentDir location. I’m getting an error of type “Unsupported path /data/data/[package]/file/…”
If I do not use the DownloadManager everything works fine.
The config object I’m using before fetching :
config = {
addAndroidDownloads: {
useDownloadManager: true,
notification: true,
path: RNFetchBlob.fs.dirs.DocumentDir + '/titi.mp4',
mime: 'video/mp4'
}
}
Any ideas ? Thanks !
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9
Top Results From Across the Web
[Android][DownloadManager] Unsupported path DocumentDir
Coming soon: A brand new website interface for an even better experience!
Read more >Unsupported path storage/emulated/0/test - Stack Overflow
DownloadManager on an Android 10 device wil not download to the root of external storage or to your own directory on root of...
Read more >react-native-fetch-blob - npm
A module provides upload, download, and files access API. Supports file stream read/write for process large files.. Latest version: 0.10.8, ...
Read more >types/rn-fetch-blob/index.d.ts - UNPKG
149, * RNFetchBlob Blob polyfill, create a Blob directly from file path, ... 217, * XMLHttpRequest.open, always async, user and password not supported....
Read more >how to download file to external storage for Android 10 using ...
SecurityException: Unsupported path. error while running in an Android 10 device. To provide further context, I have declared ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use
RNFetchBlob.fs.dirs.DCIMDir
for path not...dirs.DocumentDir
Not working on Android 10 with
dirs.DownloadDir