Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/241.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.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
Php Ckeditor 5文件上载适配器错误_Php_Laravel_Ckeditor - Fatal编程技术网

Php Ckeditor 5文件上载适配器错误

Php Ckeditor 5文件上载适配器错误,php,laravel,ckeditor,Php,Laravel,Ckeditor,我使用的是ckeditor classic 5,我正试图在其中上传图像。我下载了php库Ckfinder3 php连接器,set config 当我尝试加载图像时,有一个提示:无法上载文件*文件名* 有趣的是,它们是按财政方式加载到服务器上的:我可以在我的配置文件中设置的目录中查看它,这些文件是正确的: /var/www/projectfiles/downloadfiles/ 下一步我要检查权限和组:www-data 0777 原因是什么?你能给出一些建议或解决方案吗 谢谢 UPD:init函

我使用的是ckeditor classic 5,我正试图在其中上传图像。我下载了php库Ckfinder3 php连接器,set config

当我尝试加载图像时,有一个提示:
无法上载文件*文件名*

有趣的是,它们是按财政方式加载到服务器上的:我可以在我的配置文件中设置的目录中查看它,这些文件是正确的:

/var/www/projectfiles/downloadfiles/
下一步我要检查权限和组:www-data 0777

原因是什么?你能给出一些建议或解决方案吗

谢谢

UPD:init函数

ClassicEditor
            .create( document.querySelector( '#material_preview' ), {
                ckfinder: {
                    uploadUrl: '/ckfinder/connector/?command=QuickUpload&type=Images'
                }

            } )
            .catch( error => {
                console.error( error );
            } );
php配置:

$config['authentication'] = function () {
    return true;
};

$config['backends']['default'] = array(
    'name'         => 'default',
    'adapter'      => 'local',
    'baseUrl'      => 'http://files.project.com/downloadfiles/',
    'root'         => '/var/www/projectfiles/downloadfiles/',
    'chmodFiles'   => 0777,
    'chmodFolders' => 0777,
    'filesystemEncoding' => 'UTF-8'
);

连接器路径看起来无效。对于PHP,它应该类似于: “/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files” 请看一看CKFinder演示中的CKEditor集成示例:

终于找到了

连接器路径有效。问题出在laravel中缓存文件夹的权限中。如果它对你有帮助,你会很高兴的