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

Multiple attribute doesn't work for me #40

Closed Gougerik closed 2 years ago

Gougerik commented 2 years ago

So I like your module it's simple and easy to work with but now I have decided to try it with multiple files but it doesn't work. My code looks like this: <FileUploader multiple={true} ... But it's still not able to upload multiple files. I tried also passing true argument as string but didn't work. Is this problem on my side or anybody has this issue too? Can you please fix this? Thanx.

Gougerik commented 2 years ago

@KarimMokhtar @iamdipanshusingh

KarimMokhtar commented 2 years ago

Hi @Gougerik , Thanks for your contribution. Actually, it's working fine. could you please send the version you are using and what's the behavior happening with you?

Gougerik commented 2 years ago

Hi @Gougerik , Thanks for your contribution. Actually, it's working fine. could you please send the version you are using and what's the behavior happening with you?

I'm using the latest version ofc. It just behaves like there isn't multiple attribute at all. Actually when I inspect the code and check input file filed, there really isn't multiple attribute. I can add it via inspect and then I can select multiple files but when I click on "Open" it'll pass just the first one.

Gougerik commented 2 years ago

@KarimMokhtar I can add you on discord so I can send you screenshots or we can call if that's needed.

KarimMokhtar commented 2 years ago

I think there is no need for discord you can put the screenshots with the comment. Also here is mine Screenshot from 2022-02-09 00-34-13

Gougerik commented 2 years ago

@KarimMokhtar OK... image image

KarimMokhtar commented 2 years ago

@Gougerik Please confirm, Are you using v.2.3.2 or a lower one?

Gougerik commented 2 years ago

@Gougerik Please confirm, Are you using v.2.3.2 or a lower one?

@KarimMokhtar yes, 2.3.2

KarimMokhtar commented 2 years ago

Ok, Could you please write a sample of the code you use on codesandbox and share it so i could debug?

Gougerik commented 2 years ago

Ok, Could you please write a sample of the code you use on codesandbox and share it so i could debug?

@KarimMokhtar Well, you're right... It works here: https://codesandbox.io/s/jolly-river-tw8uf?file=/src/App.tsx

But I can't find out why it's not working on my website.

KarimMokhtar commented 2 years ago

Hi, @Gougerik I have some thoughts that may be wrong; Could you please try the traditional approach be remove and install the library again? : "D Also, i will close this issue and here is my email: karimmokhtar28@gmail.com Please confirm here if it's working after reinstalling if not email me we can arrange a meeting to debug it. I would be more than happy to help. Thanks for your contribution.