Filemanager
Filemanager copied to clipboard
Can't open/read subdirectories.
I've configured upload directory in filemanager.config.js which displays and is usable just fine, but when I tried to access subdirectories I get an error - {"Error":"No way.","Code":"-1","Properties":{"Date Created":null,"Date Modified":null,"Height":null,"Width":null,"Size":null}}. I gave the directories full permissions (777) but that does not make any difference.
Please copy / paste your config.js file for further help
Hi, Here is a copy of my filemanager.config.js file, I'd appreciate any insight in this. { "_comment": "IMPORTANT : go to the wiki page to know about options configuration https://github.com/simogeo/Filemanager/wiki/Filemanager-configuration-file", "options": { "culture": "en", "lang": "php", "theme": "flat-dark", "defaultViewMode": "grid", "autoload": true, "showFullPath": false, "showTitleAttr": false, "browseOnly": false, "showConfirmation": true, "showThumbs": true, "generateThumbnails": true, "searchBox": true, "listFiles": true, "fileSorting": "default", "chars_only_latin": true, "dateFormat": "d M Y H:i", "serverRoot": true, "fileRoot": "Internal/codeigniter/assets/uploads/", "baseUrl": false, "logger": false, "capabilities": ["select", "download", "rename", "delete", "replace"], "plugins": [] }, "security": { "allowFolderDownload": false, "allowChangeExtensions": false, "allowNoExtension": false, "uploadPolicy": "DISALLOW_ALL", "uploadRestrictions": [ "jpg", "jpe", "jpeg", "gif", "png", "svg", "txt", "pdf", "odp", "ods", "odt", "rtf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv", "ogv", "mp4", "webm", "m4v", "ogg", "mp3", "wav", "zip", "rar" ] }, "upload": { "multiple": true, "number": 5, "overwrite": false, "imagesOnly": false, "fileSizeLimit": 16 }, "exclude": { "unallowed_files": [ ".htaccess", "web.config" ], "unallowed_dirs": [ "_thumbs", ".CDN_ACCESS_LOGS", "cloudservers" ], "unallowed_files_REGEXP": "/^./", "unallowed_dirs_REGEXP": "/^./" }, "images": { "imagesExt": [ "jpg", "jpe", "jpeg", "gif", "png", "svg" ], "resize": { "enabled":true, "maxWidth": 1280, "maxHeight": 1024 } }, "videos": { "showVideoPlayer": true, "videosExt": [ "ogv", "mp4", "webm", "m4v" ], "videosPlayerWidth": 400, "videosPlayerHeight": 222 }, "audios": { "showAudioPlayer": true, "audiosExt": [ "ogg", "mp3", "wav" ] }, "edit": { "enabled": true, "lineNumbers": true, "lineWrapping": true, "codeHighlight": false, "theme": "elegant", "editExt": [ "txt", "csv" ] }, "customScrollbar": { "enabled": true, "theme": "inset-2-dark", "button": true }, "extras": { "extra_js": [], "extra_js_async": true }, "icons": { "path": "images/fileicons/", "directory": "_Open.png", "default": "default.png" }, "url": "https://github.com/simogeo/Filemanager", "version": "2.0.0-dev" }
you can try to log actions : https://github.com/simogeo/Filemanager/wiki/Enable-log-debug-in-PHP-connector
See also : https://github.com/simogeo/Filemanager/wiki/Specify-user-folder%2C-configuration-cases
Hi, I finally managed to enable log by manually creating filemanager.log file and giving it read and write permissions (666) and below is the result. What I find interesting is that filemanager just takes the first letter of the filename instead of the whole thing. Any suggestion on how to fix that?
[28/10/2015 09:47:20]#::1#Filemanager::enableLog - Log enabled (in /Volumes/Macintosh HD/Applications/XAMPP/xamppfiles/htdocs/Internal/codeigniter/filemanager.log file) [28/10/2015 09:47:20]#::1#Filemanager::__construct $this->root value /Applications/XAMPP/xamppfiles/htdocs/Internal/codeigniter/assets/bower_components/Filemanager/ [28/10/2015 09:47:20]#::1#Filemanager::__construct $this->path_to_files /Applications/XAMPP/xamppfiles/htdocs//Internal/codeigniter/assets/uploads/ [28/10/2015 09:47:20]#::1#Filemanager::__construct $this->doc_root value /Applications/XAMPP/xamppfiles/htdocs/ [28/10/2015 09:47:20]#::1#Filemanager::__construct $this->separator value uploads [28/10/2015 09:47:20]#::1#substr path_to_files : /Applications/XAMPP/xamppfiles/htdocs/Internal/codeigniter/assets/uploads/i [28/10/2015 09:47:20]#::1#path_to_files : /Applications/XAMPP/xamppfiles/htdocs/Internal/codeigniter/assets/uploads/ [28/10/2015 09:47:20]#::1#Filemanager::error - error message : No way.
Could you tell me the excepted path ?
Internal/codeigniter/assets/uploads/images
Hi, I think I found the problem, it's line 83 of the filemanager.class.php $this->path_to_files = $_SERVER['DOCUMENT_ROOT'] .'/' . $this->config['options']['fileRoot']; when I remove '/' it now works fine $this->path_to_files = $_SERVER['DOCUMENT_ROOT'] . $this->config['options']['fileRoot'];
Thanks for feedback ! Need to have a look on that to understand better. I'll close it later