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

feat: Add maxFilesSize option #509

Open
Flyrell opened this issue Jan 30, 2020 · 0 comments
Open

feat: Add maxFilesSize option #509

Flyrell opened this issue Jan 30, 2020 · 0 comments

Comments

@Flyrell
Copy link

Flyrell commented Jan 30, 2020

Thanks for a great library @bleenco.
I'm working on file uploader that accepts multiple files. What I need is to set the maximum size of all the files user has selected. As far as I know, the following behaviour should do the trick without any breaking changes:

  • default size would be Number.POSITIVE_INFINITY
  • if the summed files size is exceeded, reject event should be fired and no files should be added

What do you think about it? I would probably be able to create a PR for it.

@Flyrell Flyrell changed the title feat: Add possibility to add maxFilesSize feat: Add maxFilesSize option Jan 30, 2020
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

1 participant