正在安装elfinder web文件管理器



我有一个共享Linux apach主机,我把elfinder放在public_html/js/elfinder中这是我的connector.php设置

array( 
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 
'path' => '/uploads', // path to files (REQUIRED) 
'URL' => dirname($_SERVER['PHP_SELF']) . '/uploads', // URL to files (REQUIRED) 
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL) 
) 

这是我的jquery设置

$().ready(function() { 
var elf = $('#elfinder').elfinder({ 
url : 'js/elfinder/php/connector.php' // connector URL (REQUIRED) 
}).elfinder('instance'); 
}); 

但是当我进入elfinder页面时,这个错误显示无法连接到后端。找不到后端。

您对elfinder文件夹有适当的权限吗?755分文件夹644分文件

你的文件树不好

将文件路径从'path' => '/uploads', //更改为

'path' => '../uploads', // path to files

更改所有标签(link and script scr)

前缀链接如下:

<script type="text/javascript" src="js/elfinder/js/elfinder.min.js"></script>

您的前缀是:js/elfinder/js/js/elfinder/js/css

最新更新