* lisp/net/mailcap.el (mailcap-file-name-to-mime-type): New function.
Attach a file by drag & drop or click to upload