Fixes one of several problems described in ticket #1279.
Attach a file by drag & drop or click to upload