From e5015bcf43956c8764e7ae27aed785722dcbc966 Mon Sep 17 00:00:00 2001 From: lutranf Date: Tue, 23 Dec 2014 14:51:55 +0100 Subject: [PATCH] get found mime type on error --- inc/toolbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/toolbox.php b/inc/toolbox.php index 3e5b6ee..c96a8f2 100644 --- a/inc/toolbox.php +++ b/inc/toolbox.php @@ -177,7 +177,7 @@ class ToolBox elseif(!array_key_exists('extension', $asOutInfo)) $sOutPath .= '.'.$sImageExt; //folder + filename, but getting ext from file info //New sizes - if(!in_array($sImageExt, $asImageExts)) $asResult['error'] = 'Wrong file type'; + if(!in_array($sImageExt, $asImageExts)) $asResult['error'] = 'Wrong file type: '.$sImageExt; else { list($iWidth, $iHeight) = getimagesize($sInPath);