This ports some code over from EE to reduce conflicts
Attach a file by drag & drop or click to upload