-
Notifications
You must be signed in to change notification settings - Fork 130
"Unknown URI" for downloaded document #34
Comments
I am also getting same issue as @andelz
I am getting this issue in Android Oreo 8.1. Below Oreo, It is working fine. Please add support for oreo. Thanks. |
I am able to fix the issue by adding in FilePath.java class. Please add below code in FilePath.java in getPath method.
Final code: `package com.hiddentao.cordova.filepath; import android.Manifest; import org.apache.cordova.CallbackContext; import java.io.File; public class FilePath extends CordovaPlugin {
*/
} |
Fixed in pull request #35 |
I hope the pull request for this fix get merged soon! I am having the same problem. |
Don't worry, reinstall this plugin using the git uri: |
I suppose is it safe to say that this repository is not longer maintained . |
the last commit... 4 years ago |
Out of curiosity, since it is merged. Why doesn't this work ionic cordova plugin add cordova-plugin-filepath @olaferlandsen |
@PeterHdd it is not yet pushed to NPM. @hiddentao has lost his NPM credentials but he is looking for them. |
Whenever I do:
I get the following error:
How can this be solved? |
Hey all, 1.5.0 has now been pushed, enjoy. |
Sorry about the delay, someone else was supposed to be maintaining this repo but I'm not sure if they're still interested in doing so. I'm happy for anyone else who is keen to take over maintenance duties as I don't build with cordova anymore as it is. Alternatively, I can keep merging PRs that the community feel are worthy of addition. |
yes I can help you if you want |
Yes, I can help you for this. |
@PeterHdd @gurwinder-macrew Thanks a lot! |
Having the same problem here. Any news on the fix? |
I think " String path = Environment.getExternalStorageDirectory().toString() + "/Download/" + fileName;" isn't reasonable. |
Trying to get file path for a downloaded document I get an error:
Unknown URI: content://downloads/public_downloads/12627
Content URI provided was:
content://com.android.providers.downloads.documents/document/12627
It seems that files downloaded using Chrome or Gmail are stored this way. Am I missing something? Taking a look at your code it seems that since Android 8 (which I'm running on) you expect something that contains
raw
inside the content URI. But in my case it's lacking the raw part?The text was updated successfully, but these errors were encountered: