|
本帖最后由 kuailewang 于 2013-5-22 16:20 编辑
//表单赋值
$post[$field['name']] = '/'.setting('attachment_dir').'/'.$upload['folder'].'/'.$upload['name'].'.'.$upload['type'];
其中把附件目录 setting('attachment_dir') 也插入到了数据库,这样以后修改附件目录,上传过的图片就找不到目录了
//解决办法如下去掉 setting('attachment_dir')
$post[$field['name']] = '/'.$upload['folder'].'/'.$upload['name'].'.'.$upload['type'];
|
|