check dragged element is file or not

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Are you sure? When I tested and it wasn't empty.