Getting 405 (Method not allowed) when uploading images with CKFinder
Until yesterday, I was able to use CKFinder with CKEditor 4 to upload images to the server and add them to the inline CKEditor.
Now, all of a sudden, I'm getting a 405 (Method not allowed) error when trying to upload an image. CKFinder itself is returning "Error 10: Invalid command". This happens even if I re-upload images that I uploaded before.
I am able to see the contents of userfiles in CKFinder, so it's not a matter of a wrong directory. Also, I've tried adding
config.filebrowserUploadMethod = 'form'
to config.js, but my browser console's Network tab still shows the outgoing request as 'xhr'. Don't know if that's relevant.
Can anyone help? Again, this worked fine yesterday, I have no idea what has changed.
Here's the network tab output for the failed upload:
ckeditor http-status-code-405 ckfinder
add a comment |
Until yesterday, I was able to use CKFinder with CKEditor 4 to upload images to the server and add them to the inline CKEditor.
Now, all of a sudden, I'm getting a 405 (Method not allowed) error when trying to upload an image. CKFinder itself is returning "Error 10: Invalid command". This happens even if I re-upload images that I uploaded before.
I am able to see the contents of userfiles in CKFinder, so it's not a matter of a wrong directory. Also, I've tried adding
config.filebrowserUploadMethod = 'form'
to config.js, but my browser console's Network tab still shows the outgoing request as 'xhr'. Don't know if that's relevant.
Can anyone help? Again, this worked fine yesterday, I have no idea what has changed.
Here's the network tab output for the failed upload:
ckeditor http-status-code-405 ckfinder
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25
add a comment |
Until yesterday, I was able to use CKFinder with CKEditor 4 to upload images to the server and add them to the inline CKEditor.
Now, all of a sudden, I'm getting a 405 (Method not allowed) error when trying to upload an image. CKFinder itself is returning "Error 10: Invalid command". This happens even if I re-upload images that I uploaded before.
I am able to see the contents of userfiles in CKFinder, so it's not a matter of a wrong directory. Also, I've tried adding
config.filebrowserUploadMethod = 'form'
to config.js, but my browser console's Network tab still shows the outgoing request as 'xhr'. Don't know if that's relevant.
Can anyone help? Again, this worked fine yesterday, I have no idea what has changed.
Here's the network tab output for the failed upload:
ckeditor http-status-code-405 ckfinder
Until yesterday, I was able to use CKFinder with CKEditor 4 to upload images to the server and add them to the inline CKEditor.
Now, all of a sudden, I'm getting a 405 (Method not allowed) error when trying to upload an image. CKFinder itself is returning "Error 10: Invalid command". This happens even if I re-upload images that I uploaded before.
I am able to see the contents of userfiles in CKFinder, so it's not a matter of a wrong directory. Also, I've tried adding
config.filebrowserUploadMethod = 'form'
to config.js, but my browser console's Network tab still shows the outgoing request as 'xhr'. Don't know if that's relevant.
Can anyone help? Again, this worked fine yesterday, I have no idea what has changed.
Here's the network tab output for the failed upload:
ckeditor http-status-code-405 ckfinder
ckeditor http-status-code-405 ckfinder
edited Jan 3 at 11:53
Boris Hansen
asked Jan 3 at 0:07
Boris HansenBoris Hansen
7718
7718
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25
add a comment |
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014787%2fgetting-405-method-not-allowed-when-uploading-images-with-ckfinder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014787%2fgetting-405-method-not-allowed-when-uploading-images-with-ckfinder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If CKFinder was working yesterday but doesn't today, something had to be changed. CKFinder couldn’t stop working just like that. The error HTTP 405 is not about fomr/xhr upload method but about GET/POST/HEAD etc. Please open Network tab browser dev-tools (best Firefox or Chrome) and check what type of the request is being made to server when you try to upload a file. You can paste it here or if you are using PHP version compare it with DEMO requests - ckeditor.com/docs/ckfinder/demo/ckfinder3/samples
– j.swiderski
Jan 3 at 11:23
I've added a screenshot of the Network tab output for the failed upload request. Seems to be a GET.
– Boris Hansen
Jan 3 at 11:55
As you probably know, this should be sent through POST. Please check your .htaccess file for possible redirects. Also when looking through the network i have found an old link mentioning some plugin and framework specific feature like presence trailing stash forcing change from POST to GET - github.com/postmanlabs/postman-app-support/issues/450. You could look for something similar in your setup. One thing for sure this is not CKFinder problem.
– j.swiderski
Jan 3 at 12:25