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

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/ 

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