The former is the option actually supported by these commands.
Attach a file by drag & drop or click to upload