Skip to content

[file_selector_web] feat: Support XFile.mimeType#11703

Open
Gustl22 wants to merge 2 commits into
flutter:mainfrom
Gustl22:93379-file_selector_web-mimetype
Open

[file_selector_web] feat: Support XFile.mimeType#11703
Gustl22 wants to merge 2 commits into
flutter:mainfrom
Gustl22:93379-file_selector_web-mimetype

Conversation

@Gustl22
Copy link
Copy Markdown
Contributor

@Gustl22 Gustl22 commented May 13, 2026

Support providing mime type to XFile blob on Web file_selector.

This is useful (as in other contexts of web) to provide the mimeType to e.g. a media player to support blob urls.

Related: flutter/flutter#93379

List which issues are fixed by this PR. You must list at least one issue.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for mimeType to XFile in the file_selector_web package. The changes include updating the _convertFileToXFile method to extract the MIME type from the web File object and enhancing integration tests to verify this property. The package version is bumped to 0.9.5. I have no feedback to provide as there were no review comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant