This example shows how to drag data from other applications. Drag some text out of a text editor that allows it onto the text dropzone.
For files, Firefox and IE do not provide the DataTransferItem interface so we can't work out whether the image is actually of the type we want. We have to cancel the even and then check again on i'll show the drop whether the type matched.