Based on the patch from Daniil Medvedev (a Google Summer of Code task)
Attach a file by drag & drop or click to upload