This simplifies the code a little. No functional changes.
Attach a file by drag & drop or click to upload