Hi all,
Currently I'm having some issues with CKFinder.
When I try to start the file browser through CKEditor, I get a message saying that I can't upload files, instead I should check the config file.
I did, and everything seems to be fine in there.
However, I looked at the page source, and noticed some weird url's in the javascript code of CKEditor (I use the php api to initiate CKEditor):
Could this be the cause of my problem?
And if so, how can I solve this?
Kind regards,
Thomas
Currently I'm having some issues with CKFinder.
When I try to start the file browser through CKEditor, I get a message saying that I can't upload files, instead I should check the config file.
I did, and everything seems to be fine in there.
However, I looked at the page source, and noticed some weird url's in the javascript code of CKEditor (I use the php api to initiate CKEditor):
<script type="text/javascript">//<![CDATA[ CKEDITOR.replace('editor1', { "filebrowserBrowseUrl": "\/site\/admin\/..\/includes\/ckfinder\/ckfinder.html", "filebrowserImageBrowseUrl": "\/site\/admin\/..\/includes\/ckfinder\/ckfinder.html?type=Images", "filebrowserFlashBrowseUrl": "\/site\/admin\/..\/includes\/ckfinder\/ckfinder.html?type=Flash", "filebrowserUploadUrl": "\/site\/admin\/..\/includes\/ckfinder\/core\/connector\/php\/connector.php?command=QuickUpload&type=Files", "filebrowserImageUploadUrl": "\/site\/admin\/..\/includes\/ckfinder\/core\/connector\/php\/connector.php?command=QuickUpload&type=Images", "filebrowserFlashUploadUrl": "\/site\/admin\/..\/includes\/ckfinder\/core\/connector\/php\/connector.php?command=QuickUpload&type=Flash" }); //]]></script>
Could this be the cause of my problem?
And if so, how can I solve this?
Kind regards,
Thomas
Re: File browser and upload issue
Anybody?
Re: File browser and upload issue
CKFinder tells me that the file browser and uploader is disabled for security reasons.
I just don't have any idea why though...
Anybody an idea on this?
Thomas
Re: File browser and upload issue
Thomas
Re: File browser and upload issue
Thanks
Re: File browser and upload issue
I fixed the security warning issue by editing the CheckAuthentication() function in config.php
By default it will always return false, so you won't be able to upload or browse your files.
So generally, you will be able to use the file browser when the function CheckAuthentication() returns true.
I did it as follows (you can use your own method too of course):
Whenever you call the CKFinder / CKEditor scripts, set $_SESSION['IsAuthorized'] to true.
(In my website system this session variable is set according to user permissions).
If you have any further questions, just let me know.
Thomas