为什么使用 fckeditor 文件浏览上传文件时收到无效请求?

发布于 2024-09-02 15:39:59 字数 113 浏览 4 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅沫记忆 2024-09-09 15:39:59

我也有这个问题。问题是找不到要上传的资源类型。我认为它应该通过文件扩展名检测资源类型,但没有代码可以做到这一点。

我通过在配置中添加资源类型“文件”来修复它。我认为这是一种解决方法,但它对我有用。

所以链接浏览器 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' ;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文