-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS][Maui.Essentials] File.ContentType from MediaPicker is not in MIME format #15562
Comments
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Verified this on Visual Studio Enterprise 17.9.0 Preview 1(8.0.3). Repro on iOS 17.0, not repro on Windows 11 and Android 14.0-API34 with below Project: |
The summary for FileBase.ContentType is:
|
I'm hitting this too and took a while to figure out why this wasn't working right (also I don't get why Anyway the bug is most obviously here:
It just uses the extension, which isn't a content type. A quick localized fix would be to use the overload that sets the contenttype here:
|
Same thing for capturing/picking videos. |
the PR says that the developer was "still working on it" over 2 years ago. |
And then the PR just got merged anyways, I guess... |
Description
Unlike other platforms,
ContentType
property from the file received after callingMediaPicker.PickPhotoAsync
is not in the MIME format.Actual result
Expected result
Steps to Reproduce
Link to public reproduction project repository
https://github.com/takla21/MauiEssentialsContentTypeSample
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.4
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: