我可以在Elfinder上上传一个zip文件。但是当我尝试解压缩该文件时,它向我显示此错误。 “无法打开本地目录”。有人吗?
这是我的connector.minimal.php的样子:
'roots' => array(
// Items volume
array(
'encoding' => 'cp1251',
'locale' => 'ru_RU.CP1251',
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => '../files/', // path to files (REQUIRED)
'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED)
'trashHash' => 't1_Lw', // elFinder's hash of trash folder
'winHashFix' => DIRECTORY_SEPARATOR !== '/', // to make hash same to Linux one on windows too
'uploadDeny' => array('all'), // All Mimetypes not allowed to upload
'uploadAllow' => array('image/x-ms-bmp', 'image/gif', 'image/jpeg', 'image/png', 'image/x-icon', 'text/plain', 'application/rar', 'application/zip', 'text/x-php', 'text/php', 'text/sql', 'text/x-sql', 'text/css', 'image/x-xcf', 'image/pxm', 'text/html','text/markdown', 'text/x-markdown', 'text/javascript', 'application/json', 'audio/wav', 'audio/x-wav', 'image/svg+xml', 'image/svg', 'text/docx', 'application/.document'), // Mimetype image and text/plain allowed to upload
'uploadOrder' => array('deny', 'allow'), // allowed Mimetype image and text/plain only
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
),
// Trash volume
array(
'id' => '1',
'driver' => 'Trash',
'path' => '../files/.trash/',
'tmbURL' => dirname($_SERVER['PHP_SELF']) . '/../files/.trash/.tmb/',
'winHashFix' => DIRECTORY_SEPARATOR !== '/',
'uploadDeny' => array('all'),
'uploadAllow' => array('image/x-ms-bmp', 'image/gif', 'image/jpeg', 'image/png', 'image/x-icon', 'text/plain', 'application/rar', 'application/zip', 'text/x-php', 'text/php','test/x-sql', 'text/sql', 'text/css', 'image/x-xcf', 'image/pxm', 'text/html','text/markdown', 'text/x-markdown', 'text/javascript', 'application/json', 'audio/wav', 'audio/x-wav', 'image/svg+xml', 'image/svg', 'text.docx'), // Same as above
'uploadOrder' => array('deny', 'allow'), // Same as above
'accessControl' => 'access', // Same as above
)
)
);