This bug is already fixed differently in the main line.
Attach a file by drag & drop or click to upload