MimeTypeGuesserInterface

MimeTypeGuesserInterface

interface MimeTypeGuesserInterface

Guesses the mime type of a file.

Methods

string guess(string $path)

Guesses the mime type of the file with the given path.

Details

string guess(string $path)

Guesses the mime type of the file with the given path.

Parameters

string $path The path to the file

Return Value

string The mime type or NULL, if none could be guessed

Exceptions

FileNotFoundException If the file does not exist
AccessDeniedException If the file could not be read
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部