|
@@ -98,7 +98,7 @@ class Upload extends Base
|
|
|
$ext = pathinfo($file_info['name'],PATHINFO_EXTENSION);
|
|
|
$file_name = pathinfo($file_info['name'],PATHINFO_FILENAME);
|
|
|
$new_name = $file_name.date("Y-m-d H:i:s").'.'.$ext;
|
|
|
- $res = move_uploaded_file($file_info[''],$_SERVER['DOCUMENT_ROOT'].'/static/pdf'.$new_name);
|
|
|
+ $res = move_uploaded_file($file_info['tmp_name'],$_SERVER['DOCUMENT_ROOT'].'/static/pdf'.$new_name);
|
|
|
var_dump($res,$_SERVER['DOCUMENT_ROOT'].'/static/pdf'.$new_name);
|
|
|
die();
|
|
|
$headers = [];
|