This tiny bit of code has gone through so many revisions. Hopefully it's more correct now. Fixes #2204
Attach a file by drag & drop or click to upload