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

   I think there might be a miscommunication here.
   
   `window.cordova.plugin.ftp.download` is not the file plugin.
   
   `externalDataDirectory.toURL()` -- this does look part part of the file 
plugin API, but it simply just returns a URL that looks like 
`https://localhost:/__cdvfile_files-external__/...`. Nothing that is provided 
shows using cordova-plugin-file API to create or open a file. So I'm going on 
the assumption that your FTP plugin is what is attempting to consume the file 
path and attempting to open a file.
   
   `toURL()` returns a file path usable by the DOM. Your FTP plugin probably 
won't understand this url, as the URL is only usable with Cordova's webview, 
which is configured to intercept `https://localhost` paths. Since you're 
interfacing with cordova plugin API instead of the DOM API, you probably want 
to use `.nativeURL` instead to obtain and pass a local `file:` path, instead of 
a `https://` path.
   
   If this doesn't work, then you need to provide us the code that actually 
opens the file.


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