Code is small enough that there is no advantage in a separate function.
Attach a file by drag & drop or click to upload