2009-12-11 66 views
0

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

有什么想法?

回答

1

您是否检查过FCKeditor配置文件以获取正确的值,并且您是否已将上传文件夹中的权限设置为对于运行上载脚本的任何进程都可写?

0

刚刚通过这个自己。关键是要在着名的“move_uploaded_file”函数调用所在的PHP FckEditor FileUpload函数中放置一个错误处理函数。对我来说,这是一个权限问题,使得运行php的进程没有写入我的Web服务器拥有的目标文件目录的权限。所以,因为我没有管理员到服务器我有两个选择,给足够的权限,使PHP可以写入它(开始充分和证明它的工作),然后找回它或其次使用PHP的FTP功能从文件复制临时位置到结婚服务器拥有的目录。他们的关键是使用您用来上传网页内容的相同ftp用户。

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'] = 
+0

谢谢。我的问题是错误地把绝对路径 – Silentbang 2015-07-25 06:25:21