sarink / react-file-drop

React component for Gmail or Facebook -like drag and drop file uploader
https://www.sarink.net
176 stars 54 forks source link

How to get the list of file objects when folders are dropped #67

Closed c-yalamareddy closed 4 years ago

c-yalamareddy commented 4 years ago

I get the list of file objects when they are dropped. when a folder (contains multiple) is dropped, I get only one single file object(which is the folder) from the onDrop event . Is there any way to get the list of file objects from the event?.

c-yalamareddy commented 4 years ago

I solved this problem by using e.dataTransfer.items. Hence, closing the issue. Thank you.