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/25 03:49:36 UTC

[GitHub] [cordova-plugin-file] peitschie commented on issue #507: Resolve URLs with more than one colon fails

peitschie commented on issue #507:
URL: https://github.com/apache/cordova-plugin-file/issues/507#issuecomment-1136694591

   Just noting this change has bit me also. Prior to the v7 update with the changes to support the custom asset loading on Android, you could safely call `resolveLocalFileSystemURL` with the result of a `Entry.toInternalURL()` or similar as that would always return a `file://` or `cdvfile://` URL on android. Now, it's only safe to call this with something that comes from `entry.nativeURL`.
   
   I've adapted my own code to use the `.nativeURL` entry instead... but, interesting to note.
   
   In my use case, I need to take a file path and save to local storage, and then after a subsequent app restart I reload the data from the previously saved file. Previously I was storing the result of `toInternalURL()`... now I'm storing the result of `.nativeURL` isntead.


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