cordova-plugin-file-downloader icon indicating copy to clipboard operation
cordova-plugin-file-downloader copied to clipboard

Downloader.localFolder.toURL is not a function.

Open matiasmm opened this issue 4 years ago • 0 comments

I've been having the issue mentioned here:

Downloader.localFolder.toURL is not a function. This error happens the second time I try to download a file this way:

downloader.init({folder: "testApp"});
downloader.get("http://yourhost.de/some.zip");

I was actually able to solve it thanks to this comment: https://github.com/fastrde/cordova-plugin-fastrde-downloader/issues/15#issuecomment-216864526

I think it should be documented that downloader.get can only be executed after DOWNLOADER_initialized has triggered.

Would it be possible to add this piece of information in the readme?

matiasmm avatar May 27 '20 16:05 matiasmm