(dired-mode-map): Bind w to dired-copy-filename-as-kill.
Attach a file by drag & drop or click to upload