FCKeditor: the following error occurs when uploading images: "type = image is not authorized" and "this connector is disabled please check"

Source: Internet
Author: User

Some troublesome problems occurred when using FCKeditor to upload images. By searching for images on the Internet, we finally solved them.

 

Problem 1: The system prompts that you do not have the permission type = image.


I encountered a problem when uploading images locally and uploading images on an internal test server, but the problem occurred when I published the images to an internet server.

After the image is uploaded, a script error prompt is displayed at the lower left corner of the page. Click "no permission" to view the prompt. the upload window is frozen in the progress bar and a JS error is prompted.

Solution found on the Internet:

. Net project

Find the filebrowser/fileworkerbase. CS file in the source file and find the Method

Protected void sendfileuploadresponse (INT errornumber, bool isquickupload, string fileurl, string filename, string custommsg)

In the code

Response. write (@ "(function () {var d = document. domain; while (true) {try {var a000000000000top.opener.doc ument. domain; break;} catch (e) {}; d = D. replace (/. *? (? :. | $)/, ''); If (D. length = 0) break; try {document. domain = D ;}catch (e) {break ;}}})();");

Try {document. Domain = D;} catch (e) {break;} in it to delete the file, re-compile the file, and generate a new DLL. Paste the DLL in the debug file and add it to your project.

Solved the problem after testing.

 

Question 2: The uploaded image is in a moderate state.

 

Use firbug to check the information on the network. An error occurred while calling the editor/filemanager/connectors/aspx/connector. ASPX page on the last day,

After you change the configuration file of your website and add a node <customerror mode = "off"> </customerror>, you can see the cause of the error,

Error Message

Corresponding Solutions:

Solution 1:

Add a website configuration file web. config in the root directory of FCKeditor to set
<System. Web>
<Pages theme = ""/>
</System. Web>

Normal after testing

Solution 2:

Because ASP. net2.0 has the theme feature added, if you use stylesheettheme or theme for Web. config in your project, you need to modify it more. To the directory where FCKeditor is located, open/Editor/filemanager/upload/aspx/upload. aspx and/Editor/filemanager/Browser/default/connectors/aspx/connector. aspx files: Add theme = "" Or stylesheettheme = "" to the page tab to modify theme when you are using the project. The modification is as follows: page is used in the project. theme = a custom topic value. In FCKeditor, leave the topic blank, that is, do not apply the topic <% @ page Language = "C #" inherits = "fredck. fckeditorv2.uploader "autoeventwireup =" false "theme =" "%> or <% @ page Language =" C # "inherits =" fredck. fckeditorv2.uploader "autoeventwireup =" false "theme =" "%> This solution was taken from http://blog.sina.com.cn/s/blog_59f49a5f0100bgqk.html.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.