Install .NET file manager for TinyMCE 5 and 4 into MVC app

Get the NuGet package

Server side part for N1ED is represented by Flmngr package available in NuGet package repository.

Add this package into the dependencies list of your project, you can do it in Visual Studio in this way:

  1. In Solution Explorer, right-click References and choose Manage NuGet Packages.
  2. Select the Browse tab, search for Flmngr.
  3. Click Install button.
More info with screenshots about how to install NuGet packages.

Configure

Open Web.config file of your project and inside of <configuration> section paste:

<configSections>
    <section name="Flmngr" type="Flmngr.Configuration.FileManagerConfigurationSection, Flmngr, Version=1.0.0.0, Culture=neutral"/>
</configSections>

<Flmngr>
    <add key="crossDomainUrl" value="*"/>
    <add key="dirFiles" value="files"/>
</Flmngr>

<system.webServer>
    <handlers>
        <add name="FMHandler" verb="*" path="flmngr" type="Flmngr.Files.Handler, Flmngr" />
    </handlers>
</system.webServer>

Set dirFiles value according to the directory where is your files storage (relative to the root directory of your project).

In this sample the URL of your file manager will be /flmngr, change the path value of the handler (path="flmngr") to change this URL. This URL you will use on the next step.

If your file manager URL is located on the same domain as the main website, you can remove crossDomainUrl option.

Rebuild

Rebuild and re-run your application. Flmngr will automatically serve URL path configured above. It will be relative to the root URL of your application).

So the URL you set in the "File Manager URL" in the Dashboard will be like /YourAppName/flmngr.

Example

Please see the example of using Flmngr in .NET MVC framework on our GitHub.