check dragged element is file or not

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Its kind of strange, if I log the whole `event` object to console, the property is logged as empty. However if I log it directly, its there.
BTW its working, I'll merge, Thanks!