Skip to content

[file_selector] Add MIME type support for macOS 11+ #117843

@stuartmorgan-g

Description

@stuartmorgan-g

Currently it's possible to specify mime types, but they don't actually do anything on the native side. We need to wire up an @available-gated path that uses allowedContentTypes instead of the deprecated-in-macOS-12 allowedFileTypes, and convert each filter type to its corresponding UTType. (The method channel already passes them separately, rather than combining them on the Dart side, to facilitate this change.)

(/cc @cbracken as this would be a good first "contribute to a macOS plugin" project for someone at some point.)

Metadata

Metadata

Labels

P3Issues that are less important to the Flutter projectp: file_selectorThe file_selector pluginpackageflutter/packages repository. See also p: labels.platform-macBuilding on or for macOS specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions