added more details on error filetype

This commit is contained in:
Chris
2018-12-27 10:49:55 +01:00
parent b50e522c0d
commit 28937f4270

View File

@@ -54,7 +54,7 @@ if ($_FILES['file']["error"] == UPLOAD_ERR_OK)
}
if(!$answer)
$answer = array('status'=>'err','reason'=>'Unsupported filetype');
$answer = array('status'=>'err','reason'=>'Unsupported filetype: '.$type,'filetype'=>$type);
if($answer['hash'] && $answer['status']=='ok')
{