ClassicEditor
.create( editorElement, {
ckfinder: {
uploadUrl: 'my_server_url'
}
} )
.then( ... )
.catch( ... );
What should be my server response? I am using Java in the backend. Whatever my response is, it throws a dialog box 'cannot upload file'.
Success response :
{
"uploaded": true,
"url": "http://127.0.0.1/uploaded-image.jpeg"
}
Failure response :
{
"uploaded": false,
"error": {
"message": "could not upload this image"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With