this simplifies the code and removes a lot of ugliness
Attach a file by drag & drop or click to upload