fckeditor编辑器上传文件的两个小问题补充解决
1、只能上传2M大小的文件。
请修改editors/fckeditor/editor/filemanager/connectors/xml/config.htm文件47行,把
<we name=max>2*1024*1024</we><!-- 2M -->
改为
<we name=max>1024*1024*1024</we><!-- 1G -->
2、不能上传文件名含汉字的文件。
请修改editors/fckeditor/editor/filemanager/connectors/xml/commands.htm文件50到52行,把
<if x="@{pPage:pass}">
<bag id=pPage x=true><we name=MyFile_filename>@{pPage:NewFile_filename}</we></bag>
</if>
改为
<if x="@{pPage:pass}" else=1>
<bag id=pPage x=true><we name=MyFile_filename>@{pPage:NewFile_filename}</we></bag>
<bag id=pPage><we name=MyFile_filename>n_@{sys:long}@{pPage:NewFile_extname}</we></bag>
</if>
轻松互联网开发平台(Easy Do IT)资源下载
平台及最新开发手册免费下载:http://download.csdn.net/download/tx18/8693497
开发实例:轻开B2C电子商务网站,免费下载:http://download.csdn.net/detail/tx18/8318585
轻开平台会不定期升级为大家提供更多强大而Easy的功能,请留意下载最新的版本:http://download.csdn.net/user/tx18