首页 > Web开发 > 详细

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

时间:2015-09-27 18:40:39      阅读:339      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!