elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Creation is inspired by simplicity and convenience of Finder program used in Mac OS X operating system.
This connector supports version 2.0 of the ELFinder API.
It works with ASP.NET MVC (version 4) and NancyFX (1.4.3) as self-host. Other versions might work as well.
Solution ELFinder.sln
was made with Visual Studio 2015. It's Nuget-enabled, the required packages should restore automatically when building.
Clone this repository
$ git clone https://github.com/linguanostra/ELFinder.Connector.NET.git
Open solution ELFinder.sln
Follow instructions for [ASP.NET MVC](#ASP.NET MVC) or NancyFX
Restore Nuget packages (should be automatic when building)
Compile / Run
Set ELFinder.WebServer.ASPNet
as your startup project
Edit method InitELFinderConfiguration
in Global.asax.cs
to customize configuration
Set ELFinder.WebServer.Nancy
as your startup project
Edit method InitELFinderConfiguration
in Program.cs
to customize configuration
Install connector Nuget package for ASP.NET MVC using this command:
$ Install-Package ELFinder.Connector.ASPNet
Create a controller that inherits from ELFinderBaseConnectorController .
Refer to the ELFinder.WebServer.ASPNet project for help with usage.
$ Install-Package ELFinder.Connector.Nancy
Create a module that inherits from ELFinderBaseConnectorModule .
Refer to the ELFinder.WebServer.Nancy project for help with usage.
Feel free to adapt the code in any way you see fit for your needs. For this solution, the deployment requirements are as follows:
The project/library ELFinder.Connector
The project/library ELFinder.Connector.ASPNet
The project/library ELFinder.Connector.Nancy
Depends on your requirements, tests don't cover much of the code.
Security of hashes for files/directories is far from being strong. For hosting this connector to access sensitive files, I'd recommend you change the hashes encryption routines.
Plenty of testing should be done. Feel free to contribute any changes you make.
Eventually
That Wasabi, my 2 years old adorable Exotic Shorthair
Contact author: linguanostra@gmail.com
Refer to ELFinder Homepage or Github repository .
This project uses sources/libraries from the following:
ELFinder Connector for .NET is issued under a 3-clauses BSD license.
Copyright (c) 2016, Patrick Cloutier All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of ELFinder.Connector.NET nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.