fluffysaur opened a new issue, #647: URL: https://github.com/apache/cordova-plugin-file/issues/647
# Bug Report ## Problem ### What is expected to happen? When getting `cordova.file.documentsDirectory`, and downloading files there with FileTransfer (cordova-plugin-file-transfer), it should download the files successfully. ### What does actually happen? Error: Could not create path to save downloaded file: You don't have permission to save the file" ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> Identified the cause to be in version 8.1.3. It works alright in 8.1.2. My app has a custom scheme "app" for ios, so I discovered that in 8.1.3, `cordova.file.documentsDirectory` uses `app://localhost/_app_file_/` instead of `file:///`. This seems to cause issue with cordova plugin file transfer, which does not have permission to download files to `app://localhost/_app_file_/` ### Command or Code <!-- What command or code is needed to reproduce the problem? --> Set a custom scheme for ios in the config.xml, then try to download a file to `cordova.file.documentsDirectory` using cordova plugin file transfer. ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> iOS 15, 17, 18 ### 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 iOS 7.1.1, Cordova Plugin File 8.1.3, Cordova Plugin File Transfer 2.0.0 ## 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: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org