Skip to content
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

Saving file with overwrite makes file unreadable by android OS #43

Open
BitBlueDevStudio opened this issue Feb 4, 2023 · 0 comments
Open

Comments

@BitBlueDevStudio
Copy link

BitBlueDevStudio commented Feb 4, 2023

Dont understand why owner closed #27 and #39
This is the real bug, althought it is not completely from package developer. Anyway, it is fixable.

The problems in setting mime type for /, that makes android set (1) after extension.

Simple workaround is just to fork this plugin and in FIleDialog.kt remove this line in saveFile method
applyMimeTypesFilterToIntent(mimeTypesFilter, intent)

and set your mime type hardcoded:
intent.type = "audio/mpeg

@kinex ideal would be atleast ability to set your mime type directly, and not like you did in applyMimeTypesFilterToIntent.
Or actually investigate this bug and possible better workarounds.

@BitBlueDevStudio BitBlueDevStudio changed the title Saving file does not overwrite existing unless selected Saving file with overwrite makes file unreadable by android OS Feb 4, 2023
Tristl added a commit to Tristl/flutter_file_dialog that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant