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

[Linux] Unable to pick files without extension #836

Closed
cachapa opened this issue Sep 27, 2021 · 4 comments · Fixed by #838
Closed

[Linux] Unable to pick files without extension #836

cachapa opened this issue Sep 27, 2021 · 4 comments · Fixed by #838
Assignees
Labels
desktop The issue applies to Windows, Linux or MacOS implementations. new issue An issue that hasn't yet been seen from the maintainer

Comments

@cachapa
Copy link

cachapa commented Sep 27, 2021

Calling pickFiles with FileType.any will automatically set the extension filter to *.* which effectively filters out files without extension.

I tried getting around it by using FileType.custom and allowedExtensions: [''] but that results in a *. filter which also ignores files without extension (as they're missing the trailing dot).

I only tested this on Linux, so I don't know if the issue also exists on other platforms.

Tested with file_picker 4.1.1

@cachapa cachapa added the new issue An issue that hasn't yet been seen from the maintainer label Sep 27, 2021
@philenius philenius self-assigned this Sep 27, 2021
@philenius philenius added the desktop The issue applies to Windows, Linux or MacOS implementations. label Sep 27, 2021
@philenius
Copy link
Collaborator

philenius commented Sep 27, 2021

@cachapa thanks for reporting this bug. This issue exists only on Linux (I checked it on Windows and macOS).

@cachapa
Copy link
Author

cachapa commented Sep 27, 2021

Thanks. I just tested the PR locally and can confirm it's working as expected now.

@miguelpruivo
Copy link
Owner

@cachapa published with 4.1.2. Thank you once again @philenius. 👍🏻

@cachapa
Copy link
Author

cachapa commented Sep 27, 2021

Isso foi rápido. Obrigado 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop The issue applies to Windows, Linux or MacOS implementations. new issue An issue that hasn't yet been seen from the maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants