- The second parameter https://github.com/ifad/colore/blob/1c743a380fe7827fdd426c0dc10c86208e0e6808/lib/app.rb#L188 is not a file, but the file content, which is a string. - If the string is plain text, the convert method might miss that it is actually `text/markdown` and not necessarily `text/plain`. - The `params[:file][:type]` is indeed correct. **Reference**: [Issue #322](https://github.com/ifad/colore/issues/322)