grassick commented on issue #509:
URL: 
https://github.com/apache/cordova-plugin-file/issues/509#issuecomment-1047178722


   I was able to use `toInternalURL` instead, but it's a real problem that 
`toURL` is returning URLs that the WebView can't open! For example, a file in 
internal storage (dataDirectory) gets a toURL of: 
`file:///data/user/0/co.mwater.clientapp/files/images/cached/160h/036ff0b7ddf04c1dafb18a7fe9913f34.jpg`
   
   This returns a ERR_ACCESS_DENIED message. If I get it as a cdvfile using 
toInternalURL 
(`cdvfile://localhost/files/images/cached/160h/036ff0b7ddf04c1dafb18a7fe9913f34.jpg`),
 it works. 
   
   I think this is a bug, as toURL should return a valid URL. This is only a 
problem when targeting API level 30.


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