I could remove 18 lines of code in exchange for just 4: much more robust.
Attach a file by drag & drop or click to upload