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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to