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

Multiple File Types #42

Closed
SJente opened this issue Mar 1, 2019 · 4 comments
Closed

Multiple File Types #42

SJente opened this issue Mar 1, 2019 · 4 comments

Comments

@SJente
Copy link

SJente commented Mar 1, 2019

Hello Miquel,

I'm working on an application where i want to allow different kind of file types as described in #27.

I have read that you maybe were going to implement this feature in the future. I was wondering if this possible feature was still on your to-do list because i could really use it.

Thanks for your great work on this, really love how compact and smooth it works.

Thanks in advance,
SJente

@miguelpruivo
Copy link
Owner

Hi. Thank you for your suggestion, this was already been requested in #27 as you've correctly mentioned and it's being worked on - actually it's already done on iOS and, at the time of this answer, it's being implemented on Android as well.

This will be deployed along with some other requested improvements in the 1.3.0 probably by the end of the week.

Thank you for your patience.

@SJente
Copy link
Author

SJente commented Mar 7, 2019

Great to hear @miguelpruivo, i'm looking forward to using this plugin in my application!

@miguelpruivo
Copy link
Owner

Version 1.3.0 was deployed on dart pub and adds this, alongside with other requested features and bug fixes. See changelog.

Make sure you clean and change your pubspec to the latest version: file_picker: ^1.3.0

Thank you for your feedback.

@miguelpruivo
Copy link
Owner

@SJente as of now, with version 1.6.0 released just now you can start filtering multiple extensions at once. There are breaking changes, so have in mind that from now on you'll need to provide an List of file types instead of a single one with FileType.custom.

Example:

 List<File> files = await FilePicker.getMultiFile(
          type: FileType.custom,
          allowedExtensions: ['jpg', 'pdf', 'doc'],
        );

Thank you.

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