This simplifies a bit the code, should solve the issue reported over and over by the users.
Attach a file by drag & drop or click to upload