Свойство | Type | Description | |
---|---|---|---|
$mimeTypes | THX to http://stackoverflow.com/questions/134833/how-do-i-find-the-mime-type-of-a-file-with-php |
Méthode | Description | |
---|---|---|
getMimeType ( string $file ) : string | Function to get the mimetype of a file. | |
getMimeTypeByExtension ( string $file ) : string | Gets the mime type by just looking at the extension. | |
getMimeTypeByFileInfo ( string $file ) : mixed | string | Gets the mime type by looking at the file info. |
public getMimeType ( string $file ) : string | ||
$file | string | the file to get the mimetype from |
Résultat | string | the mimetype |
public getMimeTypeByExtension ( string $file ) : string | ||
$file | string | the file to get the mimetype from |
Résultat | string | the mimetype |