rozerro
rozerro

Reputation: 7118

Flutter Document Picker

I try to use flutter_document_picker package this way:

FlutterDocumentPickerParams params = FlutterDocumentPickerParams(
    allowedFileExtensions: ['csv'],
    allowedUtiTypes: ['com.mydomain.csv'],
    allowedMimeTypes: ['application/*'],
    invalidFileNameSymbols: ['/'],
);

The problem is that in the list of files the .csv file is greyed out and not selectable i.e. not pickable (at least on Android). What is wrong in my code?

Upvotes: 0

Views: 515

Answers (1)

Femi Adegoke
Femi Adegoke

Reputation: 286

You should replace your allowedMimeTypes to '*/*' or 'text/plain'

Upvotes: 1

Related Questions