Added filetype to mimetype extension and used it