You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "breautek (via GitHub)" <gi...@apache.org> on 2023/01/25 00:11:23 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #551: entry.toUrl() gives me wrong path in ionic 6 android 12

breautek commented on issue #551:
URL: https://github.com/apache/cordova-plugin-file/issues/551#issuecomment-1402859732

   `"http://localhost/__cdvfile_sdcard__/Download/2022-12-27T10-24-17-968Z-company.pdf"` is the expected URL format returned from `toURL` if you have schemes enabled.
   
   It provides a DOM-usable URL that can be used by the standard webview APIs, replacing the old `cdvfile` scheme it used to return, which was not compatible with the `WebViewAssetLoader` system.
   
   The FileTransfer plugin however isn't updated to accept this new URL format. The FileTransfer is not part of the webview and therefore doesn't use the `WebViewAssetLoader` path resolution. Using `.nativeURL` property should be a workaround as it will contain a native `file:` path that it will understand.
   
   We have a ticket inside the file transfer plugin tracking the discussion around support for webviewassetloader URLs: https://github.com/apache/cordova-plugin-file-transfer/issues/339


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