ryohonda-ifc commented on issue #935:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/935#issuecomment-3742776758

   Hello @GitToTheHub 
   
   I have verified the fixed plugin. While I confirmed that image selection 
works correctly, `window.resolveLocalFileSystemURL() ` in `cordova-plugin-file` 
returns an error when attempting to select a video. Could you please advise on 
how to resolve this issue?
   
   Specifically, `getParentForURL` in `CDVLocalFilesystem.m` returns Error Code 
1, indicating that the path is invalid or the file does not exist.
   
   Environment:
   
   Reproducible on physical devices: iPhone SE (iOS26) and iPhone 11 Pro (iOS 
18).
   
   Not reproducible on the Simulator.
   
   Code to reproduce:
   ```
   navigator.camera.getPicture(function(imageData){
       window.resolveLocalFileSystemURL(imageData,
           function(fileEntry){
               // Success
           },
           function(error){
               alertCustom(Lang.getLocaleMessage('Could not get the file.') + 
'(error code: ' + error.code + ')');
           }
       );
   },
   function(message) {
       console.log('getPicture error: ' + message);
   },
   {
       quality: 50, 
       destinationType: navigator.camera.DestinationType.FILE_URI,
       sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
       mediaType: navigator.camera.MediaType.ALLMEDIA
   });
   ```


-- 
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]

Reply via email to