码迷,mamicode.com
首页 > Web开发 > 详细

将Ueditor文件上传至OSS

时间:2019-07-16 14:03:11      阅读:848      评论:0      收藏:0      [点我收藏+]

标签:static   stat   拷贝   hang   技术   nbsp   false   local   one   

前人已经将ueditor集成了oss,本次是作为记录

1:点击到下载页面   

下载并按照文档安装

2:将

技术图片com.zip(在UEditor-for-aliyun-OSS-master\ueditor\src\main\java)拷贝到你的src下

3: 安装原作者文档配置OSSKey.properties,注意:源文档少了ossCliendEndPoint,加上即可,具体如下:

 1 # default value false
 2 useStatus=true
 3 
 4 # ALIYUN OSS bucket info
 5 bucketName=
 6 key=
 7 
 8 secret=
 9 
10 
11 # auto create Bucket to default (HangZhou) zone, values true/false
12 # default value false
13 autoCreateBucket=false
14 
15 ## ALIYUN OSS URL
16 #ossEndPoint=http://ali--cdn.oss-cn-hangzhou.aliyuncs.com/
17 ossEndPoint=http://xxx.oss-cn-hangzhou.aliyuncs.com
18 
19 #添加ossCliendEndPoint
20 ossCliendEndPoint:http://oss-cn-beijing.aliyuncs.com
21 ## ALIYUN CDN URL
22 # Ueditor use or not use ALIYUN CDN, values true/false
23 # default value false, when useCDN=true, the cdnEndPoint will used.
24 useCDN=false
25 #cdnEndPoint=http(s)://cdn.xiexianbin.cn.w.kunlunar.com/
26 #cdnEndPoint=http://cdn.xiexianbin.cn.w.kunlunar.com/
27 
28 # Ueditor story or not story image to local direct, values true/false
29 # default value false
30 useLocalStorager=false
31 
32 # default Ueditor upload base path, from config.json, when
33 # useLocalStorager=false, this values will work to delete upload 
34 # file, default value is "upload", unuse now.
35 #uploadBasePath=upload
36 
37 # Ueditor use or not use asynchronous model to upload image to ALIYUN OSS
38 # default value false
39 useAsynUploader=false

 

4: 只要配置好了以上文件,其他就不需要改动了

 

将Ueditor文件上传至OSS

标签:static   stat   拷贝   hang   技术   nbsp   false   local   one   

原文地址:https://www.cnblogs.com/wuba/p/11194406.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!