-
Notifications
You must be signed in to change notification settings - Fork 694
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
FileSavePicker FileTypeChoices incorrect #5685
Comments
/cc @MartinZikmund |
This seems to be the browser's bug. Calling In your implementation, A workaround is to associate all files with |
uno/src/Uno.UWP/Storage/Pickers/FileSavePicker.wasm.cs Lines 72 to 84 in 557cd75
Is this expected behavior? This creates a something like this:
The JS browser code seems to process the "accept" part as a dictionary, meaning that all options, except the last, that has the same mime type will be discarded. That's why only After that, they will append the default, but unrelated |
…r now does not show unwanted extensions. Fixes unoplatform#5685
Current behavior
I have this code:
However, instead of showing these file types, they show
.cp
,.com
,.exe
,.bin
.Expected behavior
It shows the right file types, like in the my UWP-only project:
How to reproduce it (as minimally and precisely as possible)
FileSavePicker
, like in the code above.Workaround
Found none.
Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
FileOpenPicker
seems to work well. Only FileSavePicker fails.The text was updated successfully, but these errors were encountered: