You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/05/10 09:33:50 UTC

[GitHub] [cordova-plugin-media-capture] calculusdev opened a new issue, #249: Incorrect path returned for saved photo

calculusdev opened a new issue, #249:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/249

   # Bug Report
   
   ## Problem
   
   Launch the camera to capture a photo; take the photo; examine the opject returned. The `fullPath` property of the returned object is something like `file:///storage/emulated/0/Pictures/1652174370741.jpg`, while the image file is actually saved to something like `file:///storage/emulated/0/DCIM/Camera/IMG_20220510_101151.jpg`.
   
   ### What is expected to happen?
   
   The correct file path is returned for the newly-created file.
   
   ### What does actually happen?
   
   An incorrect file path is returned. Although the photo is saved to disk, there is no way to identify it from the information returned.
   
   ## Information
   
   The _video_ capture works fine. The `fullPath` property of the returned object is like `file:///storage/emulated/0/DCIM/Camera/VID_20220510_101151.mp4`, and that's the actual path to the saved file.
   
   At least one other person has mentioned a permissions problem causing problems with accessing the file from the information returned. I don't believe this is anything to do with permissions, given that the image file actually saves, and it works fine for video files.
   
   (I can't try audio - I get a "No Activity found the handle Audio Capture" error.)
   
   ### Environment, Platform, Device
   
   Nokia 7.2
   Android 11
   
   ### Version information
   
   Cordova Android 10.1.2
   Media capture plugin versions 3.0.3 and 4.0.0-dev (I've not investigated video behaviour in 3.0.3).
   File plugin versions 6.0.2 (for 3.0.3) and 7.0.0 (for 4.0.0-dev)
   Awesome Cordova plugins wrapper version 5.39.1
   
   ## Checklist
   
   - [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-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-media-capture] calculusdev commented on issue #249: Incorrect path returned for saved photo

Posted by GitBox <gi...@apache.org>.
calculusdev commented on issue #249:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/249#issuecomment-1124993854

   > I have the same problems as you, also the single MediaFile has a field named "localURL" which will be usefull but it is not accessible for some reason.
   
   This will be a problem with the awesome-cordova-plugin wrapper, rather than this project. I spotted it too, but it's still got the wrong filename for the photo.


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-media-capture] diegolaisocialcities commented on issue #249: Incorrect path returned for saved photo

Posted by GitBox <gi...@apache.org>.
diegolaisocialcities commented on issue #249:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/249#issuecomment-1124844195

   I have the same problems as you, also the single MediaFile has a field named "localURL"  which will be usefull but it is not accessible for some reason.
   
   The Audio issue is also annoying.


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-media-capture] apolon23 commented on issue #249: Incorrect path returned for saved photo

Posted by "apolon23 (via GitHub)" <gi...@apache.org>.
apolon23 commented on issue #249:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/249#issuecomment-1501217327

   Have someone resolve the problem? I have similar issue on Lenovo tab10. Cordova android 11


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org