The solution in this patch is somewhat hackish, but should be OK.
Attach a file by drag & drop or click to upload