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

UEditor富文本编辑器的图片上传 http://fex.baidu.com/ueditor/#server-deploy

时间:2015-09-27 18:41:17      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

http://fex.baidu.com/ueditor/#server-deploy

http://fex.baidu.com/ueditor/#server-path

 

首先 editor配置文件中 ueditor.config.js 的请求借口路径为 (即服务器所在)

// 服务器统一请求接口路径
        , serverUrl: URL + "net/controller.ashx"

然后 net下面的 config.json中的

    "imageUrlPrefix": "/ueditor/net/", /* 图片访问路径前缀 */
    "imagePathFormat": "upload/image/{yyyy}{mm}{dd}_{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */

后者是相对服务器serverUrl的 controller.ashx的保存路径,所以需要前者的绝对路径表示的前缀 /ueditor/net/ 

 

UEditor富文本编辑器的图片上传 http://fex.baidu.com/ueditor/#server-deploy

标签:

原文地址:http://www.cnblogs.com/adolphyang/p/4842485.html

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