热门文章
javascript 操作treeview...
C#中如何获得屏幕宽度和高度
FCKeditor用法-含代码高...
FCKeditor 回车文字换行...
用VS制作证书的方法
C#导出EXCEl文件 C#导出w...
C#注册js脚本
AxWindowsMediaPlayer的...
FCKeditor上传文件时提示...
WebBrowser控件使用详解
获取网站根目录的url
C#创建Active控件并发布(一)
DataList1_ItemCommand
C#生成缩略图
获取URL
AxWindowsMediaPlayer
FCKeditor上传文件时提示invalid request
发布时间: 2011-08-07    被阅览数: 次    文字大小:〖

FCKeditor上传文件时提示invalid request
问题:
使用FCKeditor2.5.1FCK .net 2.5,在编辑框上点击超链接,然后选择上传框,浏览好文件后,点击发送至服务器,这时弹出“Invalid Request" 
但是直接上传图片和Flash都没有任何问题,而且在浏览服务器中也可以正常上传文件。 
解决办法:
贴最原始的答案,主要是修改fckconfig.js文件的配置情况修改的两处,用红色显示.


I had this problem as well. 
The problem is that it can't find the type of resource for upload. 
I assume that it should detect the resource type by file extension, 
but there is no code to do that.

I fixed it by adding the resource type "File" in the config. 
I think this is a workaround, but it worked for me.

So the link browser url looks somewhat like this (added Type=File&):
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=File&Connector=../../../../connector.' + _FileBrowserExtension;

And the quick upload looks like this (added + '?Type=File' ):
FCKConfig.LinkUploadURL = FCKConfig.BasePath + '../upload.' + _QuickUploadExtension + '?Type=File' ;

 

 

上一篇:ASP.NET 网站路径
   下一篇:DotNetTextBox控件演示地址