161
rated 0 times
[
163]
[
2]
/ answers: 1 / hits: 15797
/ 13 Years ago, fri, november 11, 2011, 12:00:00
I'd like to change drop zone background color to green or red depending on whether the contained drag over payload contains supported file types (JPEG).
Do Gecko and Webkit support determining the file type of drag and drop files?
How one can extract the file type in these two browsers?
I have found event.dataTransfer.types API, but for Firefox it seems to be populated with application/x-moz-file and thus I think I am doing something wrong.
More From » html