Drag and Drop files and folders

You can drop files from OS. You can access to droped files via dataTransfer.files or dataTransfer.items.

If you want handle folders also then use dataTransfer.items.

You also may interest how to implement drag-and-drop with jQuery.

drop only files from OS

DnD files example

drop files and folders from OS

DnD with folders example
Drop files and folders.