Ueditor upload function

Source: Internet
Author: User

Reference file http://www.itnose.net/detail/6307204.html

1. Copy the entire Ueditor folder to any directory in the project.

2. Add a Web Form and reference the configuration and source files as follows, and instantiate them.

3. Add the appropriate version of the Newtonsoft.json reference.

Test Http://localhost:62832/Ueditor/net/controller.ashx?action=config to see if the JSON datacan be read

If an error occurs, add a reference to the

4. Enter Ueditor/net/config.json to modify the parameter configuration on the path.

A Relative to the top 6 configurations:

1) ... Pathformat (this is configured to upload file paths, errors can cause path errors in the upload file.) )

It is the path relative to the current file (Config.json) directory.

Relative to this example:

If you configure as Upload/image ... Equivalent

localhost:14311/web.aspx/ueditor/net/upload/image/...

If you configure as/file/upload/image ... Equivalent

localhost:14311/web.aspx/file/upload/image/...

Path problem can baidu HTML path

2) ... URLPrefix (This configuration is the path prefix of the file that is displayed in the editor after the file upload succeeds, which causes the file to appear incorrectly after uploading)

It is a picture access path prefix. To get a better understanding, I came up with the following formula.

Gets the picture path (relative to the web site root) = ... URLPrefix + ... Pathformat.

Tip: If you don't know how to differentiate between the two, you can put all the ... URLPrefix is set to "" (empty string), while ... Pathformat set to

The path relative to the file (Config.json) where you want to save the file or picture. (Personal advice, big God do not spray.) )

b Relative to the latter 2 configuration: (Configure the path of the picture list to be displayed when managing files or pictures online, errors will cause the picture to appear incorrectly in the list)

1) ... Managerlistpath can refer to ... Pathformat.

2) ... Managerurlprefix can refer to ... URLPrefix.

Ueditor upload function

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.