2018-08-09 16:41
浏览 231

Ckeditor 5文件上传适配器错误

I'm using ckeditor classic 5, and i'm trying to upload images in it. I downloaded php lib Ckfinder3 php connector, set config.

When i'm trying to load image i have a massage: Cannot upload file *filename*.

Interesting moment, that they are fisically loaded on server: i can view it in directory, that set in my config file and this files are correct:


The next step i'm check permission and groups: it's www-data 0777.

What can be a reason? Can you give some advice or solution?


UPD: init function

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

            } )
            .catch( error => {
                console.error( error );
            } );

php config:

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

$config['backends']['default'] = array(
    'name'         => 'default',
    'adapter'      => 'local',
    'baseUrl'      => '',
    'root'         => '/var/www/projectfiles/downloadfiles/',
    'chmodFiles'   => 0777,
    'chmodFolders' => 0777,
    'filesystemEncoding' => 'UTF-8'
  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dqn8235 2018-08-20 16:43

    Finally i got it!

    The connector path is valid. The problem was in cache folder's permisson in laravel. Be glad if it helps you.

    解决 无用
    打赏 举报
  • 查看更多回答(1条)

相关推荐 更多相似问题