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

附件优化

上级 d042f387
......@@ -252,6 +252,7 @@ class Ueditor extends Common
* )
*/
$data = $up->getFileInfo();
print_r($data);die;
// 附件上传成功后处理钩子
$hook_name = 'plugins_controller_attachment_upload_handle_end';
......
......@@ -489,11 +489,13 @@ class Uploader
return array(
"state" => $this->stateInfo,
"url" => $this->fullName,
"path" => $this->filePath,
"title" => $this->fileName,
"original" => $this->oriName,
"type" => $this->fileType,
"size" => $this->fileSize
"size" => $this->fileSize,
"hash" => hash_file('sha256', $this->filePath, false),
);
}
}
?>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册