New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modification in setFileRoot #258
Comments
Thanks for reporting. I'll have a look on this later |
Any other feedback is welcome |
I had issue with this plugin after adding dynamic root in user.config.php for matching userID with directory. I was getting No Way when I try to delete file, everything else was working properly. @sandeepbisht with your solution now I am able to delete files. Thank you. |
I don't have much time so I integrated the proposed fix without taking much time to analyse. If someone could explain it would be nice. Thanks |
@simogeo Thank you, and thank you for this great plugin. |
Problem
Note:May be this is an issue or i am integrating it wrong.
Images folder location in server is /var/www/html/public/images
I am using it as
$fm->setFileRoot("/public/images");
I created a folder using filemanager it successfully created.In attempt of deleting the folder I am getting "Invalid directory of file' error
When i enable the log of getFullPath.Then logs prints as
returned path : /var/www/html/public/images/public/images/My_folder/
It should be /var/www/html/public/images/My_folder/
Solution
I done following change in code and it worked
Changes are in setFileRoot function(filemanager.class.php) when setting dynamic_fileRoot
$this->dynamic_fileroot = str_replace("//","/",str_replace($_SERVER['DOCUMENT_ROOT'], '', $this->doc_root));
The text was updated successfully, but these errors were encountered: