It simplifies the code a lot and it's also a lot more efficient.
Attach a file by drag & drop or click to upload