0

使用 FCKeditor (2.6.5) 当我使用上传功能时,它的行为就像它已经工作(没有错误)但不上传文件。我可以使用 ftp 进入的文件管理器查看上传文件夹中的其他文件,也可以使用 fck 创建文件夹。

有什么想法吗?

4

3 回答 3

2

我可以解决编辑位于的 config.php 的问题

  \fckeditor\editor\filemanager\connectors\php\config.php

正确放置绝对路径:

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = 
于 2012-11-27T11:42:20.260 回答
1

Have you checked the FCKeditor configuration file for the correct values, and have you set permissions in the upload folder to be writable for whatever process is running the upload script?

于 2009-12-12T08:51:31.103 回答
0

我自己刚刚经历过。关键是在著名的“move_uploaded_file”函数调用所在的 PHP FckEditor FileUpload 函数周围放置一个错误处理程序。对我来说,这是一个权限问题,因此运行 php 的进程没有写入我的 Web 服务器拥有的目标文件目录的权限。因此,由于我没有服务器的管理员权限,因此我有两个选项,提供足够的权限以便 php 可以写入它(从 full 开始并证明它有效)然后将其 wynd 或者其次使用 PHP ftp 函数从它的 temp 复制文件位置到 wed 服务器拥有的目录。他们的关键是使用与上传 Web 内容相同的 ftp 用户。

于 2010-01-09T16:36:11.887 回答