fix (qodana) delete the edit of the fuction post in the fileupload and edit the comment
This commit is contained in:
parent
629f354800
commit
9bf878a635
@ -484,12 +484,12 @@ class FileUpload
|
|||||||
/**
|
/**
|
||||||
* Output data
|
* Output data
|
||||||
*
|
*
|
||||||
* @return void
|
* @return string|void
|
||||||
*/
|
*/
|
||||||
public function post()
|
public function post()
|
||||||
{
|
{
|
||||||
if (isset($_REQUEST['_method']) && $_REQUEST['_method'] === 'DELETE') {
|
if (isset($_REQUEST['_method']) && $_REQUEST['_method'] === 'DELETE') {
|
||||||
echo $this->delete();
|
return $this->delete();
|
||||||
}
|
}
|
||||||
$upload = isset($_FILES[$this->options['param_name']]) ?
|
$upload = isset($_FILES[$this->options['param_name']]) ?
|
||||||
$_FILES[$this->options['param_name']] : null;
|
$_FILES[$this->options['param_name']] : null;
|
||||||
@ -556,7 +556,6 @@ class FileUpload
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
header('Content-type: application/json');
|
header('Content-type: application/json');
|
||||||
$response = json_encode($success);
|
echo json_encode($success);
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user