今天遇到thinkcmf后台富文本编辑器无法上传图片及视频问题
提示后端配置项没有正常加载,上传插件不能正常使用!或将照片拖到这里,也支持QQ截屏后粘贴
也更换过服务器环境,还是未解决问题,于是查找代码问题
调试查看到如下错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
访问:
http://xxx.xxx.xxx/user/Ueditor/upload?action=config&&noCache=1527216140494
提示404错误,下面继续查找问题
这个路径访问的地址是:app/user/controller/ueditor 控制器
查找ueditor父级控制器 homebase 控制器,里面我新增了一个model 导致访问错误
删除后 继续访问:http://xxx.xxx.xxx/user/Ueditor/upload?action=config&&noCache=1527216140494
内容正常 可以通过访问http://xxx.xxx.xxx/user/Ueditor/upload来进行调试
如果是访问错误,可以查找父级控制器或者其他之前的文件流程。看是否有错误代码
下一篇: 三星系列手机双清等教程...