Ckeditor上传图片404错误/插件设置

Ckeditor uploadimage 404 error / plugin setup

我正在尝试通过拖放操作将图像添加到编辑器中。

无论如何我都想更新 CK 编辑器,所以在阅读之后我通过包构建创建了一个新的 CKeditor 下载,包括插件 uploadimage - http://ckeditor.com/addon/uploadimage

当我尝试在其中拖放图像时,我会看到一个绿色条,提示上传成功,不到一秒钟我就会在编辑器中看到该图像。 然后显示一个红色条。说: 'HTTP error occurred during file upload (404: File not found).'

我在 ckeditor 中有这个 config.js:

config.uploadUrl = '/upload/';

因为我假设这是上传图像的路径。该文件夹已创建,为了测试,我已将其权限设置为 777。

因为这不起作用,我假设我在这里做错了什么,或者我在配置中遗漏了什么。但是通过文档我看不出它可能是什么。

我希望有人能指出我正确的方向。

附带说明一下,我没有 need/want 文件浏览器。一点上下文 -> 这个编辑器将被登录用户使用。我不希望一个用户能够看到另一个用户的图像,并且输入的文本只使用一次,所以不需要找到早期的图像,因为对于这个特定的用途,用户将只使用这个编辑器进行一次设置。这就是为什么我认为 uploadimage 插件最适合我的需要。

亲切的问候,

马丁

基于ckeditor的documentation

The uploadUrl setting contains the location of a script that handles file uploads of pasted and dragged images

这是不是您服务器中要将文件上传到的文件夹。这应该是处理应该上传的文件的提交的脚本,这个脚本是处理将文件保存在服务器上相关文件夹中的脚本。

This plugin only covers the client side (what happen in the browser) and not the server side (which you need to implement by yourself).