-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
CKFinder Quickupload integration got broken due to latest changes in CKEditor 4.9.0 #1835
Comments
It seems that the issue is connected with configuration. Setting config to: config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html';
config.filebrowserUploadUrl = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files&responseType=json'; or to config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html';
config.filebrowserUploadMethod = 'form';
config.filebrowserUploadUrl = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; fixes the issue. What's more, even when CKEditor shows "Incorrect server response", the upload is done. The only issue is with reading the server's answer due to incorrect format (CKFinder responds with JS code by default and XHR uploader is waiting for JSON). |
Unfortunately, it looks like the only reasonable (from the end user point of view) solution will be quite ugly:
This way all URLs that point to CKFinder will be correctly adjusted. There is no other reasonable way to fix the issue. Note: searching for |
Fixed by #1840. |
Am I right in thinking this only fixes CKFinder v3.x, and not CKFinder v2.x ? |
As integration with CKFinder v2.x worked perfectly fine until CKEditor v4.9.x, I'd consider this to be a BC break/regression still, and therefore this merge not a satisfactory resolution, unless there has been a point previously where CKEditor's support for CKFinder v2.x has been officially dropped in a major version release...? |
@mlewand motioning to re-open the issue ;) |
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
ckfinder/samples/ckeditor.html
and change editor version from 4.5.10 to 4.9.0Expected result
The request should look more or less like below and upload should finish with success:
http://test.dev/ckfinder-aspnet-342/connector?command=QuickUpload&type=Files&CKEditor=editor1&CKEditorFuncNum=0&langCode=pl
Actual result
The request looks like below and CKFinder returns
109 Invalid Request
error what results in HTTP 400 being returned:http://test.dev/ckfinder-aspnet-342/connector?command=QuickUpload&type=Files
Other details
CKEditor 4.9.0
CKEditor 4.8.0
The text was updated successfully, but these errors were encountered: