I always use comint-dynamic-complete-filenamefor this. By default, this does not load, but is provided comint-mode. So you can add something like
(autoload 'comint-dynamic-complete-filename "comint" nil t)
(global-set-key "\M-]" 'comint-dynamic-complete-filename)
in yours ~/.emacsor the like. Of course, use your preferred keybinding.
source
share