New issue
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
support more file managers for saving attachments (long press) #3161
Comments
This looks like a dup of #2844. FWIW, I have been messing with this today, and the extent to which hardcoded local file paths are used in this app is insane. it's not even using the "file://" schema-- it's just passing around straight-up raw "/storage/0' type paths right out of I'm still trying to learn the code here tho. |
it's not a dup of that issue. the save button exports the file to your download folder or another file manager by long pressing. |
Hmmm. You mean the target specified in Settings->Global Settings->Miscellaneous->Save attachments to... right? If so, I guess that's where I'm saying it should, on Lollipop and above, ask you to select a folder using Android's built-in Storage Access Framework, then at that point it would have a URL like "content://something.something" which could be local storage, but could also be a folder on your Google drive, or wherever. It would also have automatic permission to access/create a file there because that's how the SAF works. Unfortunately the current infrastructure literally uses a path (ie, "/sdcard/Downloads/") which is the result of checking
Doing this will let you choose anywhere on the device to save with a UI, but will also let you save via any app that provides access. Besides the FileProvider, Google drive uses it, so does Box.com, and a few others. I started doing all of the above, but I've only been familiar with the code for about 2 days now, so i hadn't realized how many different places would be affected. After a few hours I stopped and may go back to it after we're on the newest API 26. |
I see. |
We switched to using the Storage Access Framework exclusively. |
K9 should support Android's document handler and maybe the fx file explorer (https://play.google.com/store/apps/details?id=nextapp.fx)
The text was updated successfully, but these errors were encountered: