Set buffer-file-number consistently with find-file-noselect.
Attach a file by drag & drop or click to upload