dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.99k stars 1.72k forks source link

FilePicker FileTypes filtering does not work for *.msg files on Android #23398

Open ISeeBinary opened 2 months ago

ISeeBinary commented 2 months ago

Description

When using FilePicker on Android you are unable to select *.msg files even after passing in the correct content type as a filter.

Steps to Reproduce

  1. Add a FilePicker to your application
  2. Create a PickOptions object and set the FileTypes to allow only "application/vnd.ms-outlook" (content type for *.msg files)
  3. Call PickMultipleAsync, passing in the PickOptions
  4. Navigate to the *.msg file

You are unable to select the *.msg file as it is greyed out

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 14

Did you find any workaround?

If you remove the FileTypes filter you are able to select the *.msg file, but its contect type is incorrectly reported as "application/octet-stream".

Relevant log output

No response

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 2 months ago

This issue has been verified using Visual Studio 17.11.0 Preview 3 (8.0.70 & 8.0.3). Can repro it.

TestApp.zip