patch Missing parameter file for uploadImage
This commit is contained in:
parent
4bac080418
commit
e10ce91a63
2 changed files with 4 additions and 6 deletions
|
@ -388,7 +388,6 @@ class image implements Core{
|
|||
*/
|
||||
private function uploadImage(){
|
||||
$id = $this->app->getPostParam("id");
|
||||
$file = $this->app->getPostParam("file");
|
||||
$file_name = $_FILES['file']['name'];
|
||||
$file_error = $_FILES['file']['error'];
|
||||
$file_tmp = $_FILES['file']['tmp_name'];
|
||||
|
@ -406,10 +405,10 @@ class image implements Core{
|
|||
return;
|
||||
}
|
||||
if( !is_uploaded_file($file_tmp) )
|
||||
{
|
||||
$this->app->setOutput("Error", "File Upload Error");
|
||||
{
|
||||
$this->app->setOutput("Error", "File Upload Error");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($id)){
|
||||
$this->app->setOutput("Error", "Incorrect id parameter");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue