litiobat opened a new issue #506: iOS13 file_uri error picking video from gallery URL: https://github.com/apache/cordova-plugin-camera/issues/506 # Bug Report ## Problem In iOS 13, picking video from Roll returns a bad FILE_URI no proprietary (only affected picking video, no photo) ### What is expected to happen? Return a valid proprietary FILE_URI url to work with it (for upload to server, for example) like: file:///var/mobile/Containers/Data/Application/98D7C3AE-A24F-46CE-A3B4-CF03B26355BE/tmp/video.mp4 ### What does actually happen? Returns a invalid non proprietary FILE_URI with no access to work with, like: file:///private/var/mobile/Containers/Data/PluginKitPlugin/43792FA5-A8F8-4ECA-8CCE-0C5877088858/tmp/trim.7F9B8FC4-3307-4452-9F96-46A5D9A9DDD5.MOV ## Information Using any iOS device, like iPhone upgraded to iOS 13, try to pick a video (no photo) and then load the FILE_URI returned by plugin. If you'll try to use this FILE_URI to any action, like upload the file to server for example, the log in xcode says "Error opening file. Error Domain=NSCocoaErrorDomain Code=257. You are not allowed to read this file." ** Note: This function works correctly before upgrade to iOS13. I've tried it to many iOS devices with the same result. ### Command or Code <!-- What command or code is needed to reproduce the problem? --> var options = { destinationType: 1, sourceType : 0, mediaType: 1 }; navigator.camera.getPicture(correcto, fail, options); ### Environment, Platform, Device MacOS Mojave, using Xcode 11 and iPhone Xs upgraded to iOS 13 ### Version information Cordova 9, Camera Plugin upgraded today MacOS Mojave, using Xcode 11 and iPhone Xs upgraded to iOS 13 ## 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
