vldmrrr opened a new issue, #545: URL: https://github.com/apache/cordova-plugin-file/issues/545
# Bug Report ## Problem See test application: https://github.com/vldmrrr/cordova-plugin-grant-fs-access ### What is expected to happen? The call to resolveLocalFileSystemURL with content:// URI returned by plugin from ACTION_OPEN_DOCUMENT_TREE intent is expected to succeed. ### What does actually happen? The call to resolveLocalFileSystemURL fails with File Not Found error. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> https://developer.android.com/training/data-storage/shared/documents-files#grant-access-directory ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ``` 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) ) } ); ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> Android 12 ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> ``` $ cordova -v 11.0.0 $ cordova platform Installed platforms: android 10.1.2 Available platforms: browser ^6.0.0 electron ^3.0.0 windows ^7.0.0 $ cordova plugin cordova-plugin-file 7.0.0 "File" cordova-plugin-grant-fs-access 1.0 "Request FS access from user" ``` ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x ] I searched for existing GitHub issues - [ x] I updated all Cordova tooling to most recent version - [ x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
