You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Getting error when try to create sub-folder or upload files : WARNING: mkdir(): Permission denied in elFinderVolumeLocalFileSystem.class.php
`<?php
$opts = array(
'debug' => true,
'roots' => array(
// Items volume
array(
'driver' => 'LocalFileSystem',
'path' => $_SERVER['DOCUMENT_ROOT'].'/uploads/management/',
'URL' => '/uploads/management/' , // 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('exe', 'asp', 'aspx', 'php', 'js'), // All Mimetypes not allowed to upload
'uploadAllow' => array('*'),// Mimetype
imageandtext/plainallowed to upload'uploadOrder' => array('deny', 'allow'), // allowed Mimetype
imageandtext/plainonly'accessControl' => 'access',
'fileMode' => 0644,
'dirMode' => 0755,
'tmbPath' => '.tmb',
'attributes' => array(
array(
'pattern' => '/^./',
'locked' => false,
'read'=>true,
'write'=>true
)
) // disable and hide dot starting files (OPTIONAL)
)
)
);
// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();
?>`
Error shows in console
{
"error": [
"errMkdir",
"NewFolder"
],
"debug": {
"connector": "php",
"phpver": "7.4.32",
"time": 0.0037610530853271484,
"memory": "2586Kb / 459Kb / 128M",
"upload": "",
"volumes": [
{
"id": "l1_",
"name": "localfilesystem",
"mimeDetect": "finfo",
"imgLib": "imagick"
}
],
"mountErrors": [],
"phpErrors": [
"WARNING: mkdir(): Permission denied in elFinderVolumeLocalFileSystem.class.php"
]
}
}
Beta Was this translation helpful? Give feedback.
All reactions