Upload by drag and drop : Is there a way to find if dragged item is directo

Hello Everyone,

I am trying to upload files by drag and drop .I am able to do this successfully.
However, I need to know if the dropped item is file or a directory for some custom manipulation.
In my application user can upload any file,not required to have a mime type .So i am cant identify the item by its file type also.

Is there any other way to do this?Help on this really appreciated .