http://localhost:8080/article/UserFiles/File/林三0(1).doc

chenam 2007-07-13 07:03:06
就是当在地址栏中输入:
http://localhost:8080/article/UserFiles/File/林三0(1).doc
时会出现
type Status report

message /article/UserFiles/File/%E6%9E%97%E4%B8%890(1).doc

description The requested resource (/article/UserFiles/File/%E6%9E%97%E4%B8%890(1).doc) is not available.

===请问怎样解决?
英文文件名是正常的,
...全文
106 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiangbo520 2007-07-13
  • 打赏
  • 举报
回复
老问题了,建议先到本版的FAQ区里先去看看再说
Version 2.5
Attention : This version is not compatible with releases before FCKeditor 2.5.1.

New Features and Improvements:

[#1548] Compatible with Safari 3.0+ and Opera 9.50+.
Added specific project files for Visual Studio .NET 2003 and Visual Studio 2005. It's easier now to open the source in your preferred environment. Builds will end up in the "1.1" (VS2003) and "2.0" (VS2005) folders inside bin/Debug and bin/Release.
[#79] The BasePath property now defaults to "/fckeditor/" ("/FCKeditor/" previously).
[#79] Introduced the FCKeditor.IsCompatibleBrowser static function, to check if the requesting browser is compatible with FCKeditor.
[#79] Introduced the FCKeditor.CreateHtml function, which returns the HTML needed to create an editor instance in the page.
[#294] The HtmlEncodeOutput setting is enforced by the editor component, to avoid having to set ValidateRequest="false" on pages using the editor.
Several changes to the File Browser and Uploader:
Several security checks have been introduced. Upgrading is hightly recommended.
The code has been reviewed according to our standards, aligning the FCKeditor.Net File Browser to the same quality and feature level present in other server language implementations of it, like the PHP implementation.
The connector can now be fully configured by using the "editor/filemanager/connectors/aspx/config.ascx" file, available with FCKeditor 2.5.1.
For file uploads, the file extension is precisely controlled in a list defined in the config.ascx file.
It is possible to define different folder locations for each file type.
Attention : For security, the connector must be explicitly activated, by setting "Enabled = true" in the config.ascx file.
Attention : The default connector path has been changed to "/userfiles/", instead of "/UserFiles/". This change should not impact Windows installations.
相对虚拟站点http://localhost/ictech/ 一、精简说明: 删除所有"_"开头的文件和文件夹 删除语言包中除中文和英文以外的语言 删除skin目录下除默认皮肤以外的文件夹 filemanager/browser/default/connectors/目录下除php以外的文件 filemanager/upload/目录下除php以外的文件 二、配置说明: 将Fckeditor 里的保留文件拷贝到网站根目录文件夹里,即/ictech/下 /fcktemplates.xml /fckstyles.xml /fckeditor_php5.php /fckeditor_php4.php /fckeditor.php /fckeditor.js /fckconfig.js /editor/ fckeditor.php : BasePath为默认Fckeditor的目录,也可以在调用的时候指定. 三、\fckconfig.js 语言识别设置: FCKConfig.AutoDetectLanguage = false ; //61行 关闭自动语言识别 FCKConfig.DefaultLanguage = 'zh-cn' ; //62行 选择 zh-cn 四、上传设置: \editor\filemanager\browser\default\connectors\php\config.php: $Config['Enabled'] = true ;// 30行 是否允许上传 $Config['UserFilesPath'] = '/ictech/userfiles/' ; //33行 默认上传路径,可以更改但必须在相应的目录下建这个名称的目录。 四、上传文件随机重命名为 201447202465.jpg 修改fckeditor/editor/filemanager/connectors/php/commands.php 1.第一段添加函数 [24行] function GetRandID($prefix) { //第一步:初始化种子 //microtime(); 是个数组 $seedstr =split(" ",microtime(),5); $seed =$seedstr[0]*10000; //第二步:使用种子初始化随机数发生器 srand($seed); //第三步:生成指定范围内的随机数 $random =rand(1,10000); $filename = date("dHis", time()).$random.'.'.$prefix; return $filename; } 2.[204行]应用函数 在函数function FileUpload( $resourceType, $currentFolder, $sCommand ) 中的if ( isset( $Config['SecureImageUploads'] ) )[行204]上面一行添加 $sOriginalFileName = $sFileName = GetRandID($sExtension); 设置完成 其他方面设置 ,请参见 http://www.jb51.net/article/12647.htm 五、php文件应用 事例 http://localhost/ictech/fadd.php fileinfo'); // 创建一个fckeditor对象 $oFCKeditor->BasePath=$BasePath; $oFCKeditor->Value=$fileinfo; // 设置表单初始值 $oFCKeditor->Create(); // 调用类中方法,必须 ?>

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧