This should have better been done through some shared code but it's not that obvious...
Attach a file by drag & drop or click to upload