为什么使用 fckeditor 文件浏览上传文件时收到无效请求?
我在 asp.net 2.0 项目中使用 FCKEditor(2.6.6) 使用链接对话框上的上传选项卡,我收到带有“无效请求”的警报框。然而当我使用资源浏览器上传文件时;它成功了。
有什么区别?
I.m using FCKEditor(2.6.6) in an asp.net 2.0 project Using the upload tab on the link dialog, I get alertbox with 'Invalid Request'. yet when I use the resource browser to upload a file; It succeed.
What the difference?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有这个问题。问题是找不到要上传的资源类型。我认为它应该通过文件扩展名检测资源类型,但没有代码可以做到这一点。
我通过在配置中添加资源类型“文件”来修复它。我认为这是一种解决方法,但它对我有用。
所以链接浏览器 URL 看起来有点像这样(添加了 Type=File&):
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=File&Connector=../../../../connector.' + _文件浏览器扩展;
快速上传如下所示(添加 + '?Type=File' ):
FCKConfig.LinkUploadURL = FCKConfig.BasePath + '../上传'。 + _QuickUploadExtension + '?Type=File' ;
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' ;