FCKeditor上传文件时提示invalid request
问题:
使用FCKeditor2.5.1和FCK .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' ;