Ueditor combined with seven Qiniu and Baidu Cloud Storage (Java version, ueditor-1.4.3) to achieve picture file upload

Source: Internet
Author: User

Objective

Before studying the Ueditor directly upload image files to seven Qiniu and Baidu Cloud storage, see the following two articles:

Http://uikoo9.com/blog/detail/ueditor-for-bcs

Http://uikoo9.com/blog/detail/ueditor-for-qiniu

There is also a tutorial on using ueditor-1.4.3-jsp:

Http://uikoo9.com/blog/detail/how-to-use-ueditor

Today realizes the Ueditor configurable choice to upload seven cattle or Baidu or local, see this article.


"Dependent jar"

1.ueditor-1.4.3-jsp

The second-to-last Jar is the original, and the penultimate Jar is a modified version

2. Seven KN

Note Seven bulls are picky about the version, these jars can be found in the second article to download

3. Baidu Cloud Storage (BCS)

4.qiao-util.jar

Encapsulated a number of seven cows and Baidu method, you can also achieve their own


Steps

1. Introduce the required jar

For example, to use Ueditor+qiniu, the corresponding jar is introduced without the need to introduce BCS's

2. Configuration files

Create a new config.properties under SRC, with the following content:

# Ueditor upload to Qiniu for Qiniu,bcs-bcs,local for localjfinal.ueditor.upload_to=qiniu# Qiniu propertiesqiniu.ak=*q iniu.sk=*qiniu.bucket=yourqiniubucket# BCS Propertiesbcs.ak=*bcs.sk=*bcs.host=bcs.duapp.combcs.bucket=yourbcsbucketname

The first attribute is the decision you want to upload the file to seven cattle, Baidu or server, Ak,sk are the corresponding key.

3. Modify Config.json

To upload seven kn, modify the address of the prefix to seven kn:

Baidu and its own server is the same, do not know can see the third article above.


"OK"

It's that simple, but there are two key jars:

Modified Ueditor.jar:ueditor-1.1.1-for-qiniu-bcs.jar

and Qiao-util.jar:qiao-util-20141210.jar


All right, give it a try.


For more articles, visit: uikoo9.com

Ueditor combined with seven Qiniu and Baidu Cloud Storage (Java version, ueditor-1.4.3) to achieve picture file upload

Related Article

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.