send-invisible, which is already defined in Comint. (eshell-watch-for-password-prompt): Use it.
Attach a file by drag & drop or click to upload