Ckeditor and Ckfinder with file manager |
hello to the whole community, I need help with the integration of ckfinder and CI 3.X, I have been shipwrecked on the internet between old posts and some more current ones even within the forums of this community and I still have not been able to find advice to make the ckfinder file manager, I have already managed to do the CRUD with the editor and I can even upload images and display them in the editor and in the controller view, but I can't get the filemanager to work, it always keeps loading and showing the message "please wait. "
In console it marks error 400. Someone has an idea Thank you very much in advance ![]() ![]() ![]()
How to Fix a 400 Bad Request (Causes and Fixes)
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I don't use CKFinder, but something other. I can tell that the first thing to be ensured is that CodeIgniter and CKFinder share the same session, especially when we talk about administrative part of the site. Did you pay attention about that? And then the authentication option of CKFinder would be possible to be implemented.
https://ckeditor.com/docs/ckfinder/ckfin...entication
Haven't personally used it so can't be of any help. But please provide some code, as it's easier to help you.
I'm using this one; https://github.com/Studio-42/elFinder
Hi, thanks to all the users for responding. As I said previously I have successfully integrated ckeditor and ckfinder, the problem is that I cannot deny access so that only the logged in users (Administration Panel) can run the file manager.I have already read the documentation for the configuration and it tells me that I have to control it with a function that returns true or false in this parameter of ckfinder:
PHP Code: $config['authentication'] PHP Code: $config['authentication'] = function () {
You can use the servers chmod to set the folder permissions so that only the owner you can use it.
Linux chmod command What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
How do you check in CodeIgniter that people are signed in? Are you using $_SESSION at all?
Generally speaking, the most simple one can be: $config['authentication'] = (bool) $_SESSION['login']['logged_in']; Depending on how of a tight security you are using at the moment. (07-06-2020, 09:31 PM)Rainwod Wrote: hello to the whole community, I need help with the integration of ckfinder and CI 3.X, I have been shipwrecked on the internet between old posts and some more current ones even within the forums of this community and I still have not been able to find advice to make the ckfinder file manager, I have already managed to do the CRUD with the editor and I can even upload images and display them in the editor and in the controller view, but I can't get the filemanager to work, it always keeps loading and showing the message "please wait. " A 400 Bad Request error means that the request the client made is incorrect or corrupt, and the server can't understand it. The main thing to understand is that the 400 error is a client-side error. It indicates that the request the client submitted can't be processed by the server. |
Welcome Guest, Not a member yet? Register Sign In |