Per a suggestion from Josh Kupershmidt, though I modified his patch quite a lot.
Attach a file by drag & drop or click to upload