* Fix bug #3494.
This commit is contained in:
@@ -456,6 +456,7 @@ class extension extends control
|
||||
|
||||
if($_FILES)
|
||||
{
|
||||
if($_FILES['file']['size'] == 0) die(js::alert(str_replace("'", "\'", sprintf($this->lang->extension->errorFileNotEmpty, $fileName, $return->error))));
|
||||
$tmpName = $_FILES['file']['tmp_name'];
|
||||
$fileName = $_FILES['file']['name'];
|
||||
move_uploaded_file($tmpName, $this->app->getTmpRoot() . "/extension/$fileName");
|
||||
|
||||
Reference in New Issue
Block a user