Only do the hasAttribute check if the method exists - IE falls back to the === null check below which allows this to still work. Follow-up to cb40495b - thanks to @jitter for the catch.
Attach a file by drag & drop or click to upload