Thanks to madroach for spotting the issue and providing a patch.
Attach a file by drag & drop or click to upload