修改为元数据使用ajax上传文件时写入目录的方式为从files()的返回值中调用
This commit is contained in:
parent
29db5bfdcd
commit
fcf0dd2bf2
|
@ -1306,11 +1306,11 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$filename = $msg['db_path'];
|
||||
$filesize = $msg['file_size'];
|
||||
$filedesc = $this->_request->getParam('filedesc');
|
||||
$filetype = $this->_request->getParam('dir');
|
||||
$filetype = $msg['file_type'];
|
||||
$realname = $msg['realname'];
|
||||
|
||||
|
||||
$sql = "insert into attachments (filename,filetype,filedesc,userid,filesize,realname) values ('$filename','reviewatt','$filedesc','$userid','$filesize','$realname') RETURNING id";
|
||||
$sql = "insert into attachments (filename,filetype,filedesc,userid,filesize,realname) values ('$filename','$filetype','$filedesc','$userid','$filesize','$realname') RETURNING id";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$att = $sth->fetch(PDO::FETCH_ASSOC);
|
||||
|
|
Loading…
Reference in New Issue