title | description |
---|---|
Grant FS Access |
Allows user grant to an application file system access. |
This plugin allows a user to provide cordova application access to a directory on storage that otherwise is not accessible under Android 11 and higher.
See API Documentation.
Usage:
GrantFsAccess.getDirectory(
"", // URI for the directory that should be opened in the system file picker when it loads.
uri => {
console.log(uri); // URI of the directory that user selected
// Use the resulting URI with file plugin
window.resolveLocalFileSystemURL(
uri,
d=>console.log(d),
err=>console.log(err)
)
}
);