Coder Social home page Coder Social logo

Comments (5)

miguelpruivo avatar miguelpruivo commented on May 31, 2024 1

@ChiefWiggum 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.

from flutter_file_picker.

ChiefWiggum avatar ChiefWiggum commented on May 31, 2024 1

Awesome, thank you. We'll give it a try in a few days.

from flutter_file_picker.

ChiefWiggum avatar ChiefWiggum commented on May 31, 2024

Looking at the UIDocumentPickerViewController it seems to support selecting multiple files when setting allowsMultipleSelection to true on iOS.

On Android it might be possible by using EXTRA_ALLOW_MULTIPLE.

But we would have to use another ImagePicker, since the current one, afaik, does not support the selection of multiple files. Maybe multi_image_picker would work?

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

Yes, there is a way on both platform that supports multiple file picking, however that wasn't the first purpose of this plugin. However is a nice to have that may be added in a future update.

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

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

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

Thank you for your feedback.

from flutter_file_picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.