I put these lined of code in ckeditor
config file.
// ...
config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=flash';
// ...
As a result KCFinder
Buttons (link, upload, browse, send-it-to-server) show properly in the textarea
. But when I send the image to the server, it shows
Object not found!
The requested URL was not found on this server. The link on the
referring page seems to be wrong or outdated. Please inform the
author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1
In that time url
shows
http://localhost/kcfinder/browse.php?opener=ckeditor&type=images&
CKEditor=post&CKEditorFuncNum=1&langCode=en
I opened a new Tab
in the Browser adding my website name (ewt) in the url. It opens the page properly and I could upload image from there accordingly.
The Changed url is: (I add ewt between loacalhost and kcfinder)
http://localhost/ewt/kcfinder/browse.php?opener=ckeditor&type=images&
CKEditor=post&CKEditorFuncNum=1&langCode=en
How can I add ewt in the url at ckeditor's config file? I tried
{{url()}}, base_url(), url()
etc. but not work. I need help...