Search code examples
asp.netasp.net-mvcasp.net-mvc-4ckeditor

ASP.NET MVC Image Uploader for CKEditor?


we have a textarea using CKEditor 4.4 on our admin website where users can edit content. They would like to be able to add images from their computer and have them uploaded automatically to the server for hosting.

I've seen a number of image upload scripts for CKEditor, but they all come with a PHP back-end. Does one exist for ASP.NET MVC 4?

I've seen this post and this one which show server-side controls for WebForms, but haven't been able to find an MVC version that we could drop in, or modify to our tastes.

Is my only option to use one of the existing PHP plugins and rewrite the endpoints as ASP.NET MVC?

Thanks.


Solution

  • These aren't exactly MVC samples, but you can find a sample in VB.Net and C# to handle uploads from CKEditor: https://github.com/AlfonsoML/CKEditorUploader

    Pick the code that you want and adjust it to your CMS.