Mimes.php
app/Config/Mimes.php
1 class
2 methods
class 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.
guessTypeFromExtension
(string $extension)
guessExtensionFromType
(string $type, ?string $proposedExtension = null)