Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.

maxNumberOfFiles when set from callback #1747

@xd3v2

Description

@xd3v2

Love the plugin!

I'm seeing a bug when attempting to set maxNumberOfFiles from fileuploadadd(), fileuploadadded(), or fileuploadchange().

When setting maxNumberOfFiles = 1, everything works as expected. When setting maxNumberOfFiles = 2 or more, I see the following:

  1. Am allowed to select unlimited files if I choose one file at a time.
  2. Am allowed to select maxNumberOfFiles+1 files when choosing multiple files at a time.

For point #2, I'm always able to select one more file than what is set in maxNumberOfFiles. E.g I'm allowed to select 3 files if maxNumberOfFiles = 2.

For me personally, I think this is the only issue preventing me from running multiple file inputs on the same form with different settings. Other relevant settings seem to be acting as expected when set via callbacks for each input field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions