Fix mime-type issue with txt format

--text parameter is not working because the --mime-type argument's default value