提交 27105bc9 编写于 作者: G gongfuxiang

附件优化

上级 d042f387
...@@ -252,6 +252,7 @@ class Ueditor extends Common ...@@ -252,6 +252,7 @@ class Ueditor extends Common
* ) * )
*/ */
$data = $up->getFileInfo(); $data = $up->getFileInfo();
print_r($data);die;
// 附件上传成功后处理钩子 // 附件上传成功后处理钩子
$hook_name = 'plugins_controller_attachment_upload_handle_end'; $hook_name = 'plugins_controller_attachment_upload_handle_end';
......
...@@ -487,13 +487,15 @@ class Uploader ...@@ -487,13 +487,15 @@ class Uploader
public function getFileInfo() public function getFileInfo()
{ {
return array( return array(
"state" => $this->stateInfo, "state" => $this->stateInfo,
"url" => $this->fullName, "url" => $this->fullName,
"title" => $this->fileName, "path" => $this->filePath,
"original" => $this->oriName, "title" => $this->fileName,
"type" => $this->fileType, "original" => $this->oriName,
"size" => $this->fileSize "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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册