check dragged element is file or not

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
In case of `dragenter` even if we drag a file into UI,  the `event.originalEvent.dataTransfer.types` array is empty