Reputation: 7118
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
Reputation: 286
You should replace your allowedMimeTypes to '*/*'
or 'text/plain'
Upvotes: 1