Thanks to tav (http://github.com/tav) for original code.
Attach a file by drag & drop or click to upload