This is a workarround, perhaps a cleaner solution can be consider
Attach a file by drag & drop or click to upload