mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-19 22:47:59 +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)
|
||||
$answer = array('status'=>'err','reason'=>'Unsupported filetype');
|
||||
$answer = array('status'=>'err','reason'=>'Unsupported filetype: '.$type,'filetype'=>$type);
|
||||
|
||||
if($answer['hash'] && $answer['status']=='ok')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user