You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/19 10:28:38 UTC

[GitHub] [cordova-plugin-camera] cikcoh opened a new issue #503: Camera return different file name when picking the same image from gallery.

cikcoh opened a new issue #503: Camera return different file name when picking the same image from gallery.
URL: https://github.com/apache/cordova-plugin-camera/issues/503
 
 
   # Bug Report
   
   ## Problem
   
   Camera return different file name when picking the same image from gallery.
   
   ### What is expected to happen?
   
   The same file name should be return when picking the same image.
   
   ### What does actually happen?
   
   Different file name is return for the same image.
   
   file:///var/mobile/Containers/Data/Application/98D7C3AE-A24F-46CE-A3B4-CF03B26355BE/tmp/cdv_photo_001.jpg
   file:///var/mobile/Containers/Data/Application/98D7C3AE-A24F-46CE-A3B4-CF03B26355BE/tmp/cdv_photo_002.jpg 
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   This is important because, i want to check for image duplication. since it returns different name for the same image, duplication checking function no longer works.
   
   Works fine in Android.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
           const options: CameraOptions = {
             quality: 100,
             destinationType: this.camera.DestinationType.FILE_URI,
             sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
             mediaType: this.camera.MediaType.ALLMEDIA
           }
   
         this.camera.getPicture(options).then((mediaData) => {}):
   
   ### Environment, Platform, Device
   <!-- iOS 11.4.1, iPhone 6 -->
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
       "cordova-plugin-camera": "^4.0.3",
       "@ionic-native/camera": "^5.0.0",
       "cordova": "8.0.0",
       "cordova-ios": "4.5.5",
       "ionic-angular": "3.9.2",
   -->
   
   
   
   ## 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:
users@infra.apache.org


With regards,
Apache Git Services

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