itinance / itinance/react-native-fs

Android RNFS.downloadFile only store file to root access directory

Open
#567 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Environment
react: ^16.3.1
react-native: ^0.56.0
react-native-fs: ^2.11.18

### Current behaviour
on android set the download file path to`RNFS.DocumentDirectoryPath`, but unfortunately it will only store to android root access directory `/data/user/0/com.[appname]/files`.

```
const ret = RNFS.downloadFile({
fromUrl: url,
toFile: RNFS.DocumentDirectoryPath + file.jpg,
});
```

any way i can save the downloaded file to public directory allow user to access from gallery?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.