Hadi Mazareei
Hadi Mazareei

Reputation: 49

CkEditor 4 [error status: 500] After Uploading File to Server

I am using Asp.NET Core 6 & CKEditor 4

When I click on send button to upload selected image from local path, file uploads successfully but after that error appears as follow:

HTTP error occurred during file upload (error status: 500).

I added extra directory to application root and used StaticFile like bellow:

app.UseStaticFiles(new StaticFileOptions()

    {
        FileProvider = new PhysicalFileProvider(
            System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "FilesCKEditor")),
        RequestPath = "/FilesCKEditor"
    });

Everything is ok when uploading image to the server but return status never send to ckEditor image browser dialog.

Please help me.

Thank You All

Upvotes: 0

Views: 392

Answers (0)

Related Questions