This simplifies the code a bit and avoids an uninitialized variable warning.
Attach a file by drag & drop or click to upload