We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to download to public folders using
destinationInExternalPublicDir: { dirType: "Downloads/", subPath: "file.pdf" }
Showing this error java.lang.IllegalStateException: Not one of standard directories: Downloads
The text was updated successfully, but these errors were encountered:
With API level 29 only the following paths are allowed.
Environment.DIRECTORY_MUSIC, Environment.DIRECTORY_PODCASTS, Environment.DIRECTORY_RINGTONES, Environment.DIRECTORY_ALARMS, Environment.DIRECTORY_NOTIFICATIONS, Environment.DIRECTORY_PICTURES, Environment.DIRECTORY_MOVIES, Environment.DIRECTORY_DOWNLOADS, Environment.DIRECTORY_DCIM, Environment.DIRECTORY_DOCUMENTS, Environment.DIRECTORY_AUDIOBOOKS,
More details can be found here: https://developer.android.com/reference/android/os/Environment#getExternalStoragePublicDirectory(java.lang.String)
So just replace dirType: "Downloads/", with dirType: "Download" and the file should be stored in the public downloads folder.
Sorry, something went wrong.
No branches or pull requests
When trying to download to public folders using
Showing this error
java.lang.IllegalStateException: Not one of standard directories: Downloads
The text was updated successfully, but these errors were encountered: