-
Notifications
You must be signed in to change notification settings - Fork 720
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
saveFile always return the download path on Android #1636
Comments
This issue is stale because it has been open for 7 days with no activity. |
up |
This bot is just closing all the issues aggressively (7 days) without solving anything and neither giving a chance for people to deal with them. 😢 |
May I know how do you solve this issue? |
I didn't. It would either give an exception, or I could send the file contents using the bytes which is a shady undocumented parameter. But even so, it wouldn't return the correct folder where the file was saved. Tried to look into the code but it seemed very complex with almost no comments, so I couldn't figure out yet why it stopped working, even though I'm almost sure it wasn't like this in the past. My guess is that some recent updates broke this feature on android. |
This issue is stale because it has been open for 7 days with no activity. |
Describe the bug
Reopening report 1590.
As stated, saveFileDialog returns a file path pointing to the download folder regardless of the directory picked by the user.
Workaround
A workaround is to send the file data directly through bytes, but if you intended to check on the saved file afterwards you will fail to do so.
But then, this will become incompatible with Desktop, because on windows it does return the correct folder but doesn't save the bytes contents automatically.
Platform
How are you picking?
file saved in "/storage/emulated/0/myfolder/saved.txt"
output: "saveFile returned file:: /storage/emulated/0/Download/saved.txt"
Details to reproduce the issue
Brand new blank flutter project.
The text was updated successfully, but these errors were encountered: