附件优化
parent
d042f38784
commit
27105bc979
|
|
@ -252,6 +252,7 @@ class Ueditor extends Common
|
|||
* )
|
||||
*/
|
||||
$data = $up->getFileInfo();
|
||||
print_r($data);die;
|
||||
|
||||
// 附件上传成功后处理钩子
|
||||
$hook_name = 'plugins_controller_attachment_upload_handle_end';
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue