sidlatau / flutter_document_picker

Allows user pick a document. Picked document is copied to app temporary directory. Optionally allows pick document with specific extension only.
Apache License 2.0
41 stars 29 forks source link

Allow multiple mime types #19

Closed boskokg closed 5 years ago

boskokg commented 5 years ago

Hello, Thanks for this plugin. Can you add support for multiple mime types instead of only single one? For example, I would like to filter only pdf and image files (image/*|application/pdf)

sidlatau commented 5 years ago

v3.0.0 was released to Pub with the ability to filter by multiple MIME types. Example:

final params = FlutterDocumentPickerParams(      
  allowedMimeTypes: ['application/pdf', 'image/png'],
);

final path = await FlutterDocumentPicker.openDocument(params: params);
frank-jong commented 1 year ago

How can I only see and select .gpx files? Appreciate your answer. :-)