check dragged element is file or not

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Yeah, In Chrome it is showing as empty, but in Firefox it is working fine.