Skip to content
Advertisement

CKEditor: Image uploaded but still getting an alert saying can’t upload file:filename (using ckfinder) in react

I am making a text editor for my blog (Using React) and using CKEditor for it. I am using an express server on a windows machine to handle the image upload request. When I browse the uploads directory on the windows machine, the file is present but on the CKEditor page I get the following error:

enter image description here

This is the CKEditor component code (using react):

JavaScript

This is the server code (Using express):

JavaScript
JavaScript

Advertisement

Answer

The correct response for uploaded image is

JavaScript

so in your app.post use the following code:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement