is still a hack but is much cleaner (ie, in it's own module).
Attach a file by drag & drop or click to upload