[ https://issues.apache.org/jira/browse/CB-6249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219243#comment-14219243 ]
Michael McKenzie commented on CB-6249: -------------------------------------- I also have the same issue where I need to upload a file and preserve that file's original file name. If a user attempts to retrieve some file from their gallery called "kittens.jpg" and this file gets resolved to something called "5432" it is not the expected behavior. The FileEntry object does not contain the file's actual name as it is displayed in the file system. And even worse, when you use fileEntry.file() to return a File object, the "name" property of that object says "content", not "5432". Can nothing be done return the actual name of the file as part of the FileEntry object? Some new property called "displayName" or "fileName" in addition to the "name" property? Or better yet, as the value of the "name" property itself? > Camera fails to return an actual FILE_URI it always returns content:// > ---------------------------------------------------------------------- > > Key: CB-6249 > URL: https://issues.apache.org/jira/browse/CB-6249 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin Camera, Plugin File > Affects Versions: 3.4.0 > Environment: Current Node Version > v0.10.25 > Current Cordova CLI Version > 3.4.0-0.1.0 > Android > Reporter: Ralph S Theart > Assignee: Ian Clelland > Labels: camera, file > > No matter what I do I can not get a url of file:///... all I get is > {code} > content://media/external/images/media/1357 > {code} > Here is my very simple code.... > {code} > navigator.camera.getPicture(function(imageURI){ > console.log('GOT IMAGE: '+imageURI); > window.resolveLocalFileSystemURL(imageURI, function(entry){ > console.log(entry.name + " " +entry.fullPath); > }, function(e){ > console.log('Some error occured: '+e.code); > }); > }, onPhotoFail, { > destinationType: 1, > sourceType: pictureSource, > mediaType : Camera.MediaType.ALLMEDIA, > encodingType: 0, > allowEdit : false, > correctOrientation:true, > saveToPhotoAlbum: false, > quality: 50 > }); > {code} > I always get content://... for the returned path from camera and even the > same thing when I resolve the url. Can you confirm this bug? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org