Push the mark at the start of these functions when appropriate.
Attach a file by drag & drop or click to upload