使用KCFinder将图像上传到CKEditor时,在文件上传过程中发生HTTP错误(404:找不到文件)

时间:2018-12-01 02:24:08

标签: laravel ckeditor http-status-code-404 kcfinder

我已经在/ public目录中安装了ckeditor和kcfinder。 尽管已添加到/public/ckeditor/config.js:

config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=flash';

config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=flash';

并在/public/kcfinder/config.php中启用了KCFinder

'disabled' => false,
'uploadURL' => "/uploads",
// The uploads directory is inside /public

尝试将图像上传到CKEditor时出错。

HTTP error occurred during file upload (404: File not found).

我注意到控制台中有一些错误

[CKEDITOR] Error code: cloudservices-no-token-url.
[CKEDITOR] Error code: cloudservices-no-upload-url.

0 个答案:

没有答案