About when FCKeditor, upload files prompt invalid request

Original link: http://www.cnblogs.com/yuanyuan/archive/2010/01/27/1657246.html

When using FCKeditor, and inside there is a functional hyperlink can select a file to upload, as shown:

image

But the test of time find this feature little "sent to the server" button, it will prompt "invalid request". Finally got the solution from an official post, to thank the author stickers.

 

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 =http://www.cnblogs.com/http://www.cnblogs.com/connector.' + _FileBrowserExtension;

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

 

That is, in the configuration file (fckconfig.js) in the property to FCKConfig.LinkUploadURL FCKConfig.BasePath + '../upload.' + _QuickUploadExtension + 'Type = File?';
To.

Reproduced in: https: //www.cnblogs.com/yuanyuan/archive/2010/01/27/1657246.html

Guess you like

Origin blog.csdn.net/weixin_30707875/article/details/94791406