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 2020/07/16 17:45:50 UTC

[GitHub] [cordova-plugin-file] magnus16 commented on issue #261: resolveLocalFileSystemURL: incorrect filename

magnus16 commented on issue #261:
URL: https://github.com/apache/cordova-plugin-file/issues/261#issuecomment-659568154


   > I have an email with attachment - let's say `info.txt`
   > there is an intent handler which is ment to open the attachment in the Android app
   > I'm using the `resolveLocalFileSystemURL` to read the file, the url is in format like:
   > 
   > ```
   > "content://com.google.android.gm.sapi/XX@gmail.com/message_attachment_external/%23thread-a%3Ar-5057787201526387426/%23msg-a%3Ar-7956362123961253525/0.1?account_type=com.google&mimeType=application%2Foctet-stream&rendition=1"
   > ```
   > 
   > `FileEntry` returned from the `resolveLocalFileSystemURL` contains incorrect name (`"0.1"`) e.g:
   > 
   > ```
   > {
   >   fullPath: "/com.google.android.gm.sapi/XX@gmail.com/message_attachment_external/#thread-a:r-5057787201526387426/#msg-a:r-7956362123961253525/0.1"
   >   isDirectory: false
   >   isFile: true
   >   name: "0.1"
   >   nativeURL: "content://com.google.android.gm.sapi/XX@gmail.com/message_attachment_external/%23t
   > }
   > ```
   > 
   > I'd expect the `info.txt` instead of the `0.1`
   
   Did you find a solution to this?


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



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