作者 pppscn
提交者 Karson

上传组件记录extparam参数

... ... @@ -54,6 +54,7 @@ class Ajax extends Backend
//判断是否已经存在附件
$sha1 = $file->hash();
$extparam = $this->request->post();
$upload = Config::get('upload');
... ... @@ -118,6 +119,7 @@ class Ajax extends Backend
'uploadtime' => time(),
'storage' => 'local',
'sha1' => $sha1,
'extparam' => json_encode($extparam),
);
$attachment = model("attachment");
$attachment->data(array_filter($params));
... ...