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

#871: file extensions not enforced on Windows #904

Merged
merged 6 commits into from
Dec 2, 2021

Conversation

philenius
Copy link
Collaborator

@philenius philenius commented Dec 1, 2021

Fixes #871

Previously

Users could click on All Files(*.*) in the bottom right dropdown even though a file filter was enabled:
before

Now

after

Additional fixes

  • I improved the bug report template so that the checkboxes are always correctly rendered like this:
    grafik.

  • Previously, the default file type filters (FileType.audio, FileType.image, etc.) weren't aligned on all three desktop platforms. I fixed it so that for example FileType.Audio filters for *.aac, *.midi, *.mp3, *.ogg, and *.wav on all three platforms.

There's one more bug under macOS which I wasn't able to fix (see TODO in test/file_picker_macos_test.dart).

Previously, the user could always select files without file extension
(and files of the allowed type). Now, users can only select files
that have a file extension and where the file extension is in the
list of allowed file types.
@miguelpruivo miguelpruivo merged commit 9b75f40 into master Dec 2, 2021
@miguelpruivo miguelpruivo deleted the bug/file-extensions-not-enforced-on-windows branch December 2, 2021 00:08
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

Successfully merging this pull request may close these issues.

File extension filter not enforced on Windows
2 participants