Install File Manager for ASP.NET
1. Download .NET version of Flmngr.
Server side part for N1ED is represented by Flmngr package available in NuGet package repository.
2. Add this package into the dependencies list of your project.
You can do it in Visual Studio in this way:
- In Solution Explorer, right-click References and choose Manage NuGet Packages.
- Select the Browse tab, search for
- Click Install button
3. Configure .NET backend.
Web.config file of your project and inside of
<configuration> section paste:
<configSections> <section name="Flmngr" type="Flmngr.Configuration.FileManagerConfigurationSection, Flmngr, Version=184.108.40.206, 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>
dirFiles value according to the directory where is your files storage (relative to 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
4. Configure URLs
Now the last step: to link client application (N1ED and Flmngr) with the backend you just installed.
Go into your N1ED configuration using Configuration button on it or inside Dashboard (select the configuration attached to current API key)
Select tab Files & Images and fill the values there.
There are three options there:
- File Manager URL. Set the URL on which your Flmngr backend is linked to. This depends of how you installed your backend in the previous steps. N1ED will call this URL to ask your server about something (list files, upload a file, etc.).
- Files URL. Specify the prefix of URL where your files and images are available through the web. For example if you have URL of some published image like
https://example.com/images/demo.png, probably the correct Files URL will be
- Uploads directory. The directory which will store uploaded files without a parent directory specified (quick uploads). Path starts from the root of your files storage on server. For example you store files in
/var/www/imagesand want to store all quick uploads in
/var/www/images/uploads, the correct value here will be
/uploads/(be sure this directory exists on the server).