Ueditor multi-Image Upload bug

Source: Internet
Author: User

Upload multiple images

Preview:Support for Internet Explorer 8 or later

Online Management: Unable to display due to bugs

Unzip the ueditor-1.1.1.jar and find filemanager

1. modify a method in the com. Baidu. ueditor. Hunter. filemanager class as follows:

Source code: Private string getpath (File file) {string Path = file. getabsolutepath (); return path. replace (this. rootpath, "/");}: Private string getpath (File file) {string Path = file. getabsolutepath (); string STR = path. replace (this. rootpath. replaceall ("\\/", "\\\\"), "\\"); Return STR ;}

2. Create a filemanager. Java class in the project, use the decompilation tool to open the. Class file, and paste it into the Java file.

 

In this way, you can debug the program.

 

3. Replace the compiled. Class file with the filemanager. Class file in the original jar package and package it into a jar file.

Directly compress the folder, and the compressed file will have one more layer. Therefore, you can directly select all the files in the file, right-click the file, add the compressed file, and change the file suffix name. The jar package in the line is fine.

 

Ueditor multi-Image Upload bug

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.