Javascript CKEDITOR和KCFINDER上载工作正常,图像缩略图浏览失败
Javascript CKEDITOR和KCFINDER上载工作正常,图像缩略图浏览失败,javascript,php,ckeditor,kcfinder,Javascript,Php,Ckeditor,Kcfinder,CKEDITOR和KCFINDER上传的普通安装工作正常。我可以从计算机中选择一个图像并将其发送到服务器。图像在CKeditor上弹出良好 如果我试图将图像放入已存在的CKeditor,浏览选项将打开kcfinder,我可以看到已上载的所有图像 问题是图像缩略图无法显示(请参阅所附照片)。我只看到一个列出了文件名的空白框 图片和缩略图在服务器上,我可以选择空白缩略图。将所选图像放入CKeditor窗口时,实际图像会正确显示。这肯定与KCfinder浏览中图像的显示有关 有人有什么想法吗?我已尝试
CKEDITOR
和KCFINDER
上传的普通安装工作正常。我可以从计算机中选择一个图像并将其发送到服务器。图像在CKeditor
上弹出良好
如果我试图将图像放入已存在的CKeditor
,浏览选项将打开kcfinder
,我可以看到已上载的所有图像
问题是图像缩略图无法显示(请参阅所附照片)。我只看到一个列出了文件名的空白框
图片和缩略图在服务器上,我可以选择空白缩略图。将所选图像放入
CKeditor
窗口时,实际图像会正确显示。这肯定与KCfinder
浏览中图像的显示有关
有人有什么想法吗?我已尝试从上载目录中删除htaccess文件,并在配置中禁用\u check4htaccess
选项。问题依然存在
添加了配置文件
<?php
/** This file is part of KCFinder project
*
* @desc Base configuration file
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
* @link http://kcfinder.sunhater.com
*/
/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
even if you are using session configuration.
See http://kcfinder.sunhater.com/install for setting descriptions */
$_CONFIG = array(
// GENERAL SETTINGS
'disabled' => true,
'uploadURL' => "https://example.com/library/kcfinder/upload",
'uploadDir' => "",
'theme' => "dark",
'types' => array(
// (F)CKEditor types
'files' => "",
'flash' => "swf",
'images' => "*img",
// TinyMCE types
'file' => "",
'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
'image' => "*img",
),
// IMAGE SETTINGS
'imageDriversPriority' => "imagick gmagick gd",
'jpegQuality' => 90,
'thumbsDir' => ".thumbs",
'maxImageWidth' => 0,
'maxImageHeight' => 0,
'thumbWidth' => 100,
'thumbHeight' => 100,
'watermark' => "",
// DISABLE / ENABLE SETTINGS
'denyZipDownload' => false,
'denyUpdateCheck' => false,
'denyExtensionRename' => false,
// PERMISSION SETTINGS
'dirPerms' => 0755,
'filePerms' => 0644,
'access' => array(
'files' => array(
'upload' => true,
'delete' => true,
'copy' => true,
'move' => true,
'rename' => true
),
'dirs' => array(
'create' => true,
'delete' => true,
'rename' => true
)
),
'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6
py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",
// MISC SETTINGS
'filenameChangeChars' => array(/*
' ' => "_",
':' => "."
*/),
'dirnameChangeChars' => array(/*
' ' => "_",
':' => "."
*/),
'mime_magic' => "",
'cookieDomain' => "",
'cookiePath' => "",
'cookiePrefix' => 'KCFINDER_',
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
'_normalizeFilenames' => false,
'_check4htaccess' => false,
//'_tinyMCEPath' => "/tiny_mce",
'_sessionVar' => "KCFINDER",
//'_sessionLifetime' => 30,
//'_sessionDir' => "/full/directory/path",
//'_sessionDomain' => ".mysite.com",
//'_sessionPath' => "/my/path",
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css
{file}",
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
);
?>
显示使用配置文件更新的ckfinder/config.php
文件。对vanilla安装只做了两个最小的更改,那就是uploadURL和主题。很好,请查看此文件夹library/kcfinder/upload
image是否存在`