Answer the question
In order to leave comments, you need to log in
For some reason I can't upload files when customData is specified?
Tell me who can come across. When initializing the plugin itself, I specify an addition to the path in customData in order to limit the user's work only in his directory.
var elf = $('#elfinder').elfinder({
lang: 'ru',
resizable: false,
useBrowserHistory: false,
url : '/js/plugins/elFinder/php/connector.php',
customData : {folderId : '2016'},
onlyMimes: ["image"]
}).elfinder('instance');
....
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => '/mypatch/'.$_GET['folderId'],
'URL' => '../mypatch/'.$_GET['folderId'],
'uploadDeny' => array('all'),
'uploadAllow' => array('image', 'text/plain'),
'uploadOrder' => array('deny', 'allow'),
'accessControl' => 'access'
)
)
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question