Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Permissions KCFinder&x27;您没有列出这些文件的权限;_Permissions_Kcfinder - Fatal编程技术网

Permissions KCFinder&x27;您没有列出这些文件的权限;

Permissions KCFinder&x27;您没有列出这些文件的权限;,permissions,kcfinder,Permissions,Kcfinder,我在ckeditor中集成KCFinder时遇到问题。我的ckeditor版本是4.0,另一个(KCFinder版本)是2.52-dev Hi配置ckeditor的config.js如下: CKEDITOR.config.baseHref = "/ckeditor/"; CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. // For the

我在ckeditor中集成KCFinder时遇到问题。我的ckeditor版本是4.0,另一个(KCFinder版本)是2.52-dev

Hi配置ckeditor的config.js如下:

CKEDITOR.config.baseHref = "/ckeditor/";

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here.
    // For the complete reference:
    // http://docs.ckeditor.com/#!/api/CKEDITOR.config

    config.contentsCss  = 'contents.css';
    config.language= 'it';
    config.height = '400px';
    config.uiColor = '#ffDC6E';

    //kcfinder per l'uoload delle immagini
    config.filebrowserBrowseUrl = 'kcfinder-2.51/browse.php?type=files';
    config.filebrowserImageBrowseUrl = 'kcfinder-2.51/browse.php?type=images';
    config.filebrowserFlashBrowseUrl = 'kcfinder-2.51/browse.php?type=flash';
    config.filebrowserUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=files';
    config.filebrowserImageUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=images';
    config.filebrowserFlashUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=flash';    

    // Remove some buttons, provided by the standard plugins, which we don't
    // need to have in the Standard(s) toolbar.
    config.removeButtons = 'Subscript,Superscript';
    config.disableNativeSpellChecker = false;
    };
集成是很重要的,但当我单击“在服务器中显示文件”或上载图像时,系统会显示“您没有列出文件的权限”,尽管权限是正确的

有什么问题? Tks
Salvo

我认为问题在于您还需要在KCFinder中配置设置。您需要在KCFinder文件夹中找到config.php,为此:

'disabled' => true

将其更改为
false
之后,您应该能够将文件上载到服务器。

不是安全存在的最佳方式,因为要在config.php中禁用它,允许所有用户访问它,最好的方式是在php文件中添加下面的小代码,其中包括您的文本区域:

$_SESSION['KCFINDER'] = array(
    'disabled' => false
);
希望对您有所帮助。

来自kcfinder网站:
默认情况下,KCFinder处于禁用状态。如果仅将此设置设置为false,则所有公众访问者都可以上载和管理网站上的文件。建议使用SESSION配置覆盖此设置,以便只有经过身份验证的用户才能使用KCFinder。

@YousefAltaf No。