[jira] [Commented] (CB-10069) Using either file:/// or cdvfile:// as the causes errors
[ https://issues.apache.org/jira/browse/CB-10069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090315#comment-15090315 ] Nikhil Khandelwal commented on CB-10069: Can you please respond if this is still an issue? Otherwise, I will resolve this bug as having incomplete info. > Using either file:/// or cdvfile:// as the causes errors > - > > Key: CB-10069 > URL: https://issues.apache.org/jira/browse/CB-10069 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 5.4.0 > Environment: Windows, Cordova Whitelist, Cordova File, Cordova File > Transfer >Reporter: Katie Egervari >Priority: Minor > Labels: Windows10, triaged, wfc > > Trying to load an image from the local filesystem using fileEntry.toURL() > does not work (I have tried toInternalURL() and toNativeURL() as well). In > Chrome, it says: > Not allowed to load local resource: > file:///persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > When trying to use the cdvfile:// address instead results in this error: > > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b:1 > GET > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > net::ERR_UNKNOWN_URL_SCHEME > I have tried countless configurations of whitelist and/or the content > security policy. My current configurations (but this is NOT limited to what I > have actually tried) are: > http://*/*"/> > > > http://*/*"; /> > https://*/*"; /> > > > http://*/*"; /> > https://*/*"; /> > > > And >content="default-src * 'unsafe-inline' 'unsafe-eval'"> > I really need help with this one, as this is blocking me finishing my > project. This application has to run standalone, and we have to download > images dynamically, put them on the local file system of the device, and then > show them in image tags when disconnected from the network. > Thank you. > Katie -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10069) Using either file:/// or cdvfile:// as the causes errors
[ https://issues.apache.org/jira/browse/CB-10069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069490#comment-15069490 ] Mac Stuewe commented on CB-10069: - Did you just try this: fileEntry.nativeURL? > Using either file:/// or cdvfile:// as the causes errors > - > > Key: CB-10069 > URL: https://issues.apache.org/jira/browse/CB-10069 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 5.4.0 > Environment: Windows, Cordova Whitelist, Cordova File, Cordova File > Transfer >Reporter: Katie Egervari >Priority: Blocker > Labels: Windows10 > > Trying to load an image from the local filesystem using fileEntry.toURL() > does not work (I have tried toInternalURL() and toNativeURL() as well). In > Chrome, it says: > Not allowed to load local resource: > file:///persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > When trying to use the cdvfile:// address instead results in this error: > > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b:1 > GET > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > net::ERR_UNKNOWN_URL_SCHEME > I have tried countless configurations of whitelist and/or the content > security policy. My current configurations (but this is NOT limited to what I > have actually tried) are: > http://*/*"/> > > > http://*/*"; /> > https://*/*"; /> > > > http://*/*"; /> > https://*/*"; /> > > > And >content="default-src * 'unsafe-inline' 'unsafe-eval'"> > I really need help with this one, as this is blocking me finishing my > project. This application has to run standalone, and we have to download > images dynamically, put them on the local file system of the device, and then > show them in image tags when disconnected from the network. > Thank you. > Katie -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10069) Using either file:/// or cdvfile:// as the causes errors
[ https://issues.apache.org/jira/browse/CB-10069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066246#comment-15066246 ] Sergey Shakhnazarov commented on CB-10069: -- [Using cdvfile:// paths in the DOM is not supported on Windows platform (a path can be converted to native instead).|https://github.com/apache/cordova-plugin-file#cdvfile-quirks] Is toURL returning file:/// scheme path on Windows 10? It should return ms-appx/ms-appx-web. > Using either file:/// or cdvfile:// as the causes errors > - > > Key: CB-10069 > URL: https://issues.apache.org/jira/browse/CB-10069 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 5.4.0 > Environment: Windows, Cordova Whitelist, Cordova File, Cordova File > Transfer >Reporter: Katie Egervari >Priority: Blocker > Labels: Windows10 > > Trying to load an image from the local filesystem using fileEntry.toURL() > does not work (I have tried toInternalURL() and toNativeURL() as well). In > Chrome, it says: > Not allowed to load local resource: > file:///persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > When trying to use the cdvfile:// address instead results in this error: > > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b:1 > GET > cdvfile://localhost/persistent/spotlight5/image_8a8a8a4c45698eba01456b127db5015b > net::ERR_UNKNOWN_URL_SCHEME > I have tried countless configurations of whitelist and/or the content > security policy. My current configurations (but this is NOT limited to what I > have actually tried) are: > http://*/*"/> > > > http://*/*"; /> > https://*/*"; /> > > > http://*/*"; /> > https://*/*"; /> > > > And >content="default-src * 'unsafe-inline' 'unsafe-eval'"> > I really need help with this one, as this is blocking me finishing my > project. This application has to run standalone, and we have to download > images dynamically, put them on the local file system of the device, and then > show them in image tags when disconnected from the network. > Thank you. > Katie -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org