在不提供详细信息的情况下在 elFinder 中打开 FTP 个文件
Open FTP files in elFinder without giving details
我正在使用 elFinder 来管理我的 FTP 文件。但我想打开 FTP 个文件和文件夹而不提供 FTP 个详细信息。我将 elFinder 文件保存在相同 FTP 上。可能吗?
在connector.php中:
$opts = array(
// 'debug' => true,
'roots' => array(
array(
'driver' => 'FTP',
'path' => 'here i give path of folder',
'accessControl' => 'access' ,
'tmpPath' => '../files/ftp',// disable and hide dot starting files (OPTIONAL)
'defaults' => array('read' => true, 'write' => true),
'disabled' => array('rename', 'rm' , 'copy' ,'cut','paste')
)
)
);
但是当我用这个的时候。我收到此错误:
Invalid backend configuration. Readable volumes not available.
我找到了 this.To 打开文件的解决方案,我们不需要在驱动程序中使用 ftp 选项,只需使用本地文件系统并根据服务器提供文件路径。
$opts = array(
// 'debug' => true,
' roots' => array(
array(
'driver' => 'localFileSystem',
'path' => 'path of the folder that you want to browse',
'accessControl' => 'access' ,
'defaults' => array('read' => true, 'write' => true),
'disabled' => array('rename', 'rm' , 'copy' ,'cut','paste')
)
)
);
我正在使用 elFinder 来管理我的 FTP 文件。但我想打开 FTP 个文件和文件夹而不提供 FTP 个详细信息。我将 elFinder 文件保存在相同 FTP 上。可能吗?
在connector.php中:
$opts = array(
// 'debug' => true,
'roots' => array(
array(
'driver' => 'FTP',
'path' => 'here i give path of folder',
'accessControl' => 'access' ,
'tmpPath' => '../files/ftp',// disable and hide dot starting files (OPTIONAL)
'defaults' => array('read' => true, 'write' => true),
'disabled' => array('rename', 'rm' , 'copy' ,'cut','paste')
)
)
);
但是当我用这个的时候。我收到此错误:
Invalid backend configuration. Readable volumes not available.
我找到了 this.To 打开文件的解决方案,我们不需要在驱动程序中使用 ftp 选项,只需使用本地文件系统并根据服务器提供文件路径。
$opts = array(
// 'debug' => true,
' roots' => array(
array(
'driver' => 'localFileSystem',
'path' => 'path of the folder that you want to browse',
'accessControl' => 'access' ,
'defaults' => array('read' => true, 'write' => true),
'disabled' => array('rename', 'rm' , 'copy' ,'cut','paste')
)
)
);