Function rex_mediapool_isAllowedMimeType
Checks file against optional whitelist from property
allowed_mime_types
.
Package: redaxo\mediapool
Located at redaxo/src/addons/mediapool/functions/function_rex_mediapool.php
Located at redaxo/src/addons/mediapool/functions/function_rex_mediapool.php
Parameters summary
string |
$path |
Path to the physical file |
null|string |
$filename = null |
Optional filename, will be used for extracting the file extension. If not given, the extension is extracted from <code>$path</code>. |
Return value summary
boolean
|
bool |