itinance / itinance/react-native-fs
Permission Denial : Reading {Uri} requires that you obtain access using ACTION_OPEN_DOCUMENT or related API's
Open
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Failing in the final catch block. Works with local paths sometimes, but not with google drive or some other phones
```
DocumentPicker.show({
filetype: [DocumentPickerUtil.pdf()],
}, (error, res) => {
var newP = RNFS.TemporaryDirectoryPath + "/" + res.fileName
var unc = decodeURIComponent(res.uri)
RNFS.copyFile(unc, newP).then((f) => {
let docHash = RNFS.hash(newP, 'sha256').then((hash) => this.send(res.fileName, hash)).catch(e => alert(e));
this.getData();
}
).catch(e => alert(e));
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.