fix pass var by ref
`Files::mime` will fallback to `mime_content_type`