本文介绍了Kcfinder上传图片问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站是带有kcfinder和ckeditor的Codeigniter,我的问题是当我尝试上传和加载图像时,此图像正确上传到了自动创建的文件夹/assets/kcfinder/.thumbs/images/,但是当我从服务器选择图像时,URL错误并且看不到它.如何设置正确的路径?

My site is a Codeigniter with kcfinder and ckeditor, and my issue is when I try upload and load an image, this image upload correctly in an autocreated folder /assets/kcfinder/.thumbs/images/, but When I select the image from server, the URL is wrong and I can not see it. How can I set the correct path?

推荐答案

我已经解决了这个问题.在../assets/kcfinder/config.php中,我进行了更改:

I have solved the problem.In ../assets/kcfinder/config.php I changed:

"uploadURL"从上传"到绝对网址以及"uploadDir"从"更改为"upload",并且有效!

'uploadURL' from "upload" to Absolute url and in'uploadDir' from "" to "upload" and it worked!

还是谢谢.

这篇关于Kcfinder上传图片问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 15:03