1 回答
TA贡献1876条经验 获得超5个赞
我自己解决了它,只需更改第一个数组ResourceTypeby changeurl和directory像这样的值
$config['ResourceType'][] = Array(
'name' => 'Files',
'url' => $baseUrl ,//chage url to baseurl variable
'directory' => $baseDir,//change directory to to baseDir variable
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
'deniedExtensions' => '');
注意:baseUrl变量必须为空,所以如果你baseDir在你的代码中设置这样的值, $baseDir = resolveUrl($baseUrl);你必须注释它//$baseDir = resolveUrl($baseUrl);
- 1 回答
- 0 关注
- 168 浏览
添加回答
举报