Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 2/12/2009 9:32 PM
I am getting an Invalid Request Error when uploading via the Insert/Edit Link option in FCKeditor.

I have seen this on the FCK forum: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=12692

I can not fix it. I have been trying for hours.

All other uploads/browsers work (images etc...)

Can anyone help? It is ONLY on the Insert/Edit Link option when in the FCKeditor.

Anyone had this? Got a cure?
# Constructor 2/13/2009 5:21 PM (edited 2/13/2009 5:28 PM)
Solved.

In Fiddler I noticed that the 'Type' was not being passed when Insert/Edit Link Upload Image dialogue was opened.

this was in the fckconfig.js
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=../../connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension + '&';
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%

to
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=File&Connector=../../connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension + '&';
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%

also for the UPLOAD
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=File' ;
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one

I have put the latest FCKeditor in there so maybe I missed it, no sure so will check.

If you remove the 'Type' from the browse section you will get the upload root.

That solves it anyway.
# martijnb 2/14/2009 4:51 PM
Glad you found out and thanks for the solution.