meinstein / react-file-picker

Sensible file input wrappers. Demo included.
19 stars 15 forks source link

File size must be less than 2 MB. #15

Open aimenm09 opened 4 years ago

aimenm09 commented 4 years ago

When I try to upload a file greater than 2MB it throws an error saying File size must be less than 2 MB. I have seen there is no prop for maxFileSize. How can we upload a file greater than 2MB?

Regrards,

quarterpound commented 4 years ago

Did anybody find a solution to this? I am having the same problem

imenesesl commented 4 years ago

When I try to upload a file greater than 2MB it throws an error saying File size must be less than 2 MB. I have seen there is no prop for maxFileSize. How can we upload a file greater than 2MB?

Regrards,

you can solve this problem adding the maxSize property, which by default has 2Mb.

This is not error, the library implement that feature

KBB99 commented 3 years ago

Added this to the documentation in pull reqeust 28 https://github.com/meinstein/react-file-picker/pull/28