Skip to content
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

allowedMimeTypes supress selecting the mime type #44

Open
asavchuk opened this issue Apr 19, 2023 · 1 comment
Open

allowedMimeTypes supress selecting the mime type #44

asavchuk opened this issue Apr 19, 2023 · 1 comment

Comments

@asavchuk
Copy link

According to docs, Flutter Document Picker parameter allowedMimeTypes allows to list mime types which will be shown in select dialog.

/// Android only. Allowed MIME types. /// Only files with provided
MIME types will be shown in document picker. /// If list is null or
empty - */* MIME type will be used.

Instead, when I use allowedMimeTypes: ['text/csv'] then csv file is not allowed to select in picker. The file is in grey color i.e. it innactive in select screen.

  final FlutterDocumentPickerParams params = FlutterDocumentPickerParams(
    allowedMimeTypes: ['text/csv'],
  );

So what's the purpose of this parameter then?

@alexei-kruk-idf
Copy link
Contributor

@asavchuk try this line 'text/comma-separated-values'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants