KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

Error on upload file #18

Closed akashi7 closed 2 years ago

akashi7 commented 2 years ago

failed to upload file and there are giving me this error error r

KarimMokhtar commented 2 years ago

Hello @akashi7
This error is regarding the type or size error of the file.

marcbernalencora commented 2 years ago

Hi Karim, I think the problem is related when the file they try to upload has more than one dot on the filename. I am having the issue myself on my tests and also on your demo. Try to upload a file called like this: tests.example.jpg

Regards,

KarimMokhtar commented 2 years ago

Hi @marcbernalencora , Thank you so much for your comment. But i tried it with the use case you say and it's working fine. Could you please tell me the fileTypes you are using and the file name? Screenshot from 2022-01-26 20-53-56