This should be equivalent but compatible with older versions of cp.
Attach a file by drag & drop or click to upload