flutter_document_picker icon indicating copy to clipboard operation
flutter_document_picker copied to clipboard

allowedMimeTypes supress selecting the mime type

Open asavchuk opened this issue 1 year ago • 1 comments

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?

asavchuk avatar Apr 19 '23 08:04 asavchuk

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

alexei-kruk-idf avatar May 31 '23 08:05 alexei-kruk-idf