This was implemented by me some time ago, but I forgot to commit it.
Attach a file by drag & drop or click to upload