diff --git a/application/api/controller/Ueditor.php b/application/api/controller/Ueditor.php index b943e7c09da78377a0bd93330c36ed5d2939099d..b0ff80a1fdbec643e6b66ab85075956db99857a3 100755 --- a/application/api/controller/Ueditor.php +++ b/application/api/controller/Ueditor.php @@ -252,6 +252,7 @@ class Ueditor extends Common * ) */ $data = $up->getFileInfo(); + print_r($data);die; // 附件上传成功后处理钩子 $hook_name = 'plugins_controller_attachment_upload_handle_end'; diff --git a/extend/base/Uploader.php b/extend/base/Uploader.php index 1fa53c69f8bdff60f2c9e53fe5f5095e9bf64e1d..4805bf746c8377c37f3ba68bc00e333d69d7c0c5 100755 --- a/extend/base/Uploader.php +++ b/extend/base/Uploader.php @@ -487,13 +487,15 @@ class Uploader public function getFileInfo() { return array( - "state" => $this->stateInfo, - "url" => $this->fullName, - "title" => $this->fileName, - "original" => $this->oriName, - "type" => $this->fileType, - "size" => $this->fileSize + "state" => $this->stateInfo, + "url" => $this->fullName, + "path" => $this->filePath, + "title" => $this->fileName, + "original" => $this->oriName, + "type" => $this->fileType, + "size" => $this->fileSize, + "hash" => hash_file('sha256', $this->filePath, false), ); } - -} \ No newline at end of file +} +?> \ No newline at end of file