react-file-picker icon indicating copy to clipboard operation
react-file-picker copied to clipboard

File size must be less than 2 MB.

Open aimenm09 opened this issue 5 years ago • 3 comments

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,

aimenm09 avatar Feb 19 '20 14:02 aimenm09

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

quarterpound avatar Mar 18 '20 20:03 quarterpound

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

imenesesl avatar Mar 23 '20 03:03 imenesesl

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

KBB99 avatar Mar 23 '21 16:03 KBB99