Do not call `x-get-selection' the second time, reuse the value.
Attach a file by drag & drop or click to upload