Urlaubsplan
Lade ...
Suche ...
Keine Treffer
Config::Mimes Klassenreferenz

Öffentliche, statische Methoden

static guessTypeFromExtension (string $extension)
 
static guessExtensionFromType (string $type, ?string $proposedExtension=null)
 

Statische öffentliche Attribute

static array $mimes
 

Ausführliche Beschreibung

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

Dokumentation der Elementfunktionen

◆ guessExtensionFromType()

static Config::Mimes::guessExtensionFromType ( string $type,
?string $proposedExtension = null )
static

Attempts to determine the best file extension for a given mime type.

Parameter
string | null$proposedExtension- default extension (in case there is more than one with the same mime type)
Rückgabe
string|null The extension determined, or null if unable to match.

◆ guessTypeFromExtension()

static Config::Mimes::guessTypeFromExtension ( string $extension)
static

Attempts to determine the best mime type for the given file extension.

Rückgabe
string|null The mime type found, or none if unable to determine.

Dokumentation der Datenelemente

◆ $mimes

array Config::Mimes::$mimes
static

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: