breautek commented on PR #642: URL: https://github.com/apache/cordova-plugin-file/pull/642#issuecomment-2451248091
> My initial assumption is that toURL() is intending to return a DOM-usable URL, and nativeURL is the raw filesystem path, but that sounds like it's not necessarily the case? I believe once upon a time, `toURL()` returned the `cdvfile://` urls. But with scheme-based webviews, they are now considered cross-origin so they get blocked. In that sense, I do believe so, cdvfile protocol was the original "DOM-usable" urls. `.nativeURL` I believe is the underlying url, so usually `file://` but I think it could also be `content://` on android. I'm not sure why `.toNativeURL()` calls and simply returns `.toURL()` though. -- 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-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org