`tramp-completion-mode-p' as it is in Tramp 2.1. Let-bind `tramp-completion-mode'.
Attach a file by drag & drop or click to upload