ueditor 正在读取目录及网络链接错误

环境 ueditor1_3_5-gbk-net .NET版本3.5

如果把项目直接改成4.0不会出现这样的问题,查看

问题1:正在读取目录

  找到ueditor/ueditor.config.js  找到 savePath 去掉注释就解决了

问题2:上传图片提示网络链接错误

  删除 ueditor/net/web.config

  修改imageUp.ashx

context.Response.Write(String.Format("updateSavePath([{0}]);", String.Join(", ", Config.ImageSavePath.Select(x => """ + x + """))));

修改为以下 因为在3.5下面没有访问方法

  context.Response.Write(String.Format("updateSavePath([{0}]);", String.Join(", ", Config.ImageSavePath.Select(x => """ + x + """).ToArray())));

到这就成功了

原文地址:https://www.cnblogs.com/freexiaoyu/p/3587542.html