![]() |
Urlaubsplan
|
Öffentliche, statische Methoden | |
| static | guessTypeFromExtension (string $extension) |
| static | guessExtensionFromType (string $type, ?string $proposedExtension=null) |
Statische öffentliche Attribute | |
| static array | $mimes |
This file contains an array of mime types. It is used by the Upload class to help identify allowed file types.
When more than one variation for an extension exist (like jpg, jpeg, etc) the most common one should be first in the array to aid the guess* methods. The same applies when more than one mime-type exists for a single extension.
When working with mime types, please make sure you have the ´fileinfo´ extension enabled to reliably detect the media types.
Dieses Element ist unveränderlich
|
static |
Attempts to determine the best file extension for a given mime type.
| string | null | $proposedExtension | - default extension (in case there is more than one with the same mime type) |
|
static |
Attempts to determine the best mime type for the given file extension.
|
static |