Luka313 / integrator-cordova-plugin-downloader

Cordova android plugin for downloading files via DownloadManager
ISC License
13 stars 14 forks source link

Fail when downloading to public location on api 28+ #12

Closed Slavrix closed 3 years ago

Slavrix commented 3 years ago

When trying to download to public folders using

      destinationInExternalPublicDir: {
        dirType: this.file.externalRootDirectory + "Download/",
        subPath: this.randomStr() + '_' + saveTitle
      }

java.lang.IllegalStateException: Not one of standard directories: file:///storage/emulated/0/Download/ is the error returned.

Downloading to the app storage works fine.

akk7777 commented 3 years ago

@Slavrix getting same error. How did you solve this? i have tried multiple workarounds but still getting same error.

Thanks