Skip to content

allowedExtensions not working in reactive_file_picker package. #201

Closed

Description

@indramal

allowedExtensions not working in reactive_file_picker package. This show all files. How to solve this error?

OS: Linux (Ubuntu)

ReactiveFilePicker<String>(
                        formControlName: 'file1',
                        allowMultiple: true,
                        allowedExtensions: ['jpg'],
                        filePickerBuilder: (pickImage, files, onChange) {

Activity

  1. francescoberardi commented on Aug 5, 2025

    @francescoberardi
    Contributor

    Try to add the parameter:
    type: FileType.custom,
    The wrapped file_picker package will match the allowedExtensions provided only when type is FileType.custom https://github.com/miguelpruivo/flutter_file_picker/wiki/API#filters

  2. vasilich6107 commented on Oct 22, 2025

    @vasilich6107
    Contributor

    Thanks @francescoberardi for helping
    @indramal feel free to close the issue if it helped

  3. github-actions commented on Oct 22, 2025

    @github-actions

    Hi @indramal!
    Your issue has been closed. If we were helpful don't forget to star the repo.

    Please check our reactive_forms_generator package

    We would appreciate sponsorship subscription or one time donation
    https://github.com/sponsors/artflutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions