# rich-text-editor-file-browser

> Rich text editor with a file browser for selecting and inserting images from server storage.

**Framework:** aspnet-mvc  **Component:** RichTextEditor  **Variant:** file-browser

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/aspnet-mvc/rich-text-editor-file-browser.json
```

**Install Package(s)**

```bash
Install-Package Syncfusion.AspNetMvc.RichTextEditor
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/rich-text-editor-file-browser/RichTextEditor.cshtml

```cshtml
@using Syncfusion.EJ2

@section ControlsSection{
   <div class="control-section">
        <div class="content-wrapper" id="file-browser-sample">
            @Html.EJS().RichTextEditor("fileBrowser").ToolbarSettings(e => e.Items((object)ViewData["Items"])).FileManagerSettings(e => { e.Enable(true); e.AjaxSettings((object)ViewData["AjaxSettings"]); }).ContentTemplate(@<div><p>Rich Text Editor allows inserting images from online sources as well as the local computers where you want to insert the image in your content.</p><p><b>Get started Quick Toolbar to click on the image</b></p><p>It is possible to add custom style on the selected image inside the RichTextEditor through the quick toolbar.</p><img alt='Logo' style='width: 300px; height: 300px; transform: rotate(0deg);' src="@Url.Content("~/Content/RichTextEditor/images/RTEImage-Feather.png")" /></div>).Render()
        </div>
    </div>
}
```

### src/components/rich-text-editor-file-browser/RichTextEditorController.cs

```cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;

namespace EJ2MVCSampleBrowser.Controllers
{
    public partial class RichTextEditorController : Controller
    {
        public ActionResult FileBrowser()
        {
            string hostUrl = "https://services.syncfusion.com/aspnet/production/";
            ViewData["Items"] = new[] { "FileManager", "Image" };
            ViewData["AjaxSettings"] = new
            {
                url = hostUrl + "api/RichTextEditor/FileOperations",
                getImageUrl = hostUrl + "api/RichTextEditor/GetImage",
                uploadUrl = hostUrl + "api/RichTextEditor/Upload",
                downloadUrl = hostUrl + "api/RichTextEditor/Download"
            };
            return View("~/Views/Home/rich-text-editor/file-browser/RichTextEditor.cshtml");
        }
    }
}

```
