I don't know what I was thinking when I wrote this code back in 2017 but this is so trivially fixable...
Attach a file by drag & drop or click to upload