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