file::mime()

ファイルのMIMEタイプを取得する。拡張子から判断します

引数説明
1 ファイルパス
MIMEタイプ
不明の場合はapplication/octet-stream