get found mime type on error
This commit is contained in:
@@ -177,7 +177,7 @@ class ToolBox
|
|||||||
elseif(!array_key_exists('extension', $asOutInfo)) $sOutPath .= '.'.$sImageExt; //folder + filename, but getting ext from file info
|
elseif(!array_key_exists('extension', $asOutInfo)) $sOutPath .= '.'.$sImageExt; //folder + filename, but getting ext from file info
|
||||||
|
|
||||||
//New sizes
|
//New sizes
|
||||||
if(!in_array($sImageExt, $asImageExts)) $asResult['error'] = 'Wrong file type';
|
if(!in_array($sImageExt, $asImageExts)) $asResult['error'] = 'Wrong file type: '.$sImageExt;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
list($iWidth, $iHeight) = getimagesize($sInPath);
|
list($iWidth, $iHeight) = getimagesize($sInPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user