check dragged element is file or not

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1 from D-storm/drag-drop-import

check dragged element is file or not