mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-20 06:58:00 +00:00
added more details on error filetype
This commit is contained in:
@@ -54,7 +54,7 @@ if ($_FILES['file']["error"] == UPLOAD_ERR_OK)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$answer)
|
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')
|
if($answer['hash'] && $answer['status']=='ok')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user