This post is for self reference to issues faced while setting up CK finder on CK editor version 5.0+.
I hope this will also help people facing similar situation while trying to integrate –
1. “Invalid Request” : When using the finder based uploader, after selecting the file it shows an invalid request popup and upload fails with a 400 header response. For me the issue was caused by a method inside the ckfinder.php file that retrieved the temporary folder path. After manually setting the path to /tmp fixed it for me.
2. Dynamic baseUrl and root path for each logged in user. There is no visible way to pass these as dynamic runtime values. I had to start a PHP session at the beginning of the ckfinder.php and inject dynamic folder path referencing it through session variables. Then I overridden the session variable in the controller method by user specific values. So, when the connector AJAX init call was made it fetched the right path for the user.
Notre: I used the laravel package developed by the ckeditor developer team.
Leave a comment