Split out deleting of buttons during file transfer into its own function.
Attach a file by drag & drop or click to upload