A sample demonstrating how to integrate Syncfusion EJ2 RichTextEditor with ASP.NET Core for image upload and storage using controller actions.
- Visual Studio 2022
- .NET Core 2.1 SDK or higher
- Syncfusion EJ2 AspNet.Core package
- Clone or download this repository
- Open the solution file in Visual Studio 2022
- Rebuild the solution to restore NuGet packages
- The wwwroot/Uploads directory is created at runtime
- Press F5 or click Run in Visual Studio 2022
- The application opens in your default web browser
- The RichTextEditor interface loads on the home page
- Use the image insert feature to upload images to wwwroot/Uploads
- Uploaded images persist and can be reused in the editor
This project demonstrates:
- RichTextEditor Integration: Syncfusion EJ2 RichTextEditor control for content editing
- Image Upload Handler: POST action in HomeController to process and save images
- File System Management: Creates upload directories and manages file storage
- ASP.NET Core MVC: Built on ASP.NET Core 2.1 framework with modern patterns
- Server-Side Processing: Handles file validation and secure image storage
The SaveImage action accepts uploaded files, extracts filenames, creates directories, and persists images with error handling.