Ueditor Upload path problem

Source: Internet
Author: User

The first two articles describe the errors that occur during integration and integration.

Upload path is a big problem, many people ask no one to solve, I would like to be able to change the upload and save the image of the source processing, the results of the experiment, is possible, let me explain below

we can actually see in the directory after our download has a src source directory

attention to the controller.jsp page ,

Looking at the Actionenter class, the rootpath parameter was found to be excessive, over-transmitting to the com/baidu/ueditor/upload Directory Binaryuploader and base64uploader two classes for uploading files.

Found in this class

The final save address is in 73 lines of code, the path is RootPath (project root) +Savepath (available in the Config.json file configuration), so the root is here.

I changed the source, in the controller.jsp I have a custom string parameter to the Actionenter class, and finally in Binaryuploader and base64uploader two upload the file class to replace RootPath This value

Then use eclipse or myeclipse to export the com.baidu.ueditor directory to a jar.

The uploaded path is not the project root, but is defined by the project root directory by default

Controller.jsp page after the change

Updated jar Package I named Ueditor-1.1.1.1.jar package. I've uploaded it to csdn.

Here are the following:

http://download.csdn.net/detail/ouyhong123/8520689

Ueditor Upload path problem

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.