Web file Management: Elfinder.net (FTP-enabled)

Source: Internet
Author: User
Tags ftp file

Elfinder is a Web-based file manager that is inspired by the Mac OS X Finder program.

Elfinder.net is a demo of the. NET version that uses ASP. 4 to easily manage local files using the Web.

GitHub Address: Https://github.com/leniel/elFinder.Net

However, the current elfinder.net only support the management of local folders, but I need to manage the FTP file function, after searching for a few results, I decided to expand the function, so that elfinder.net can also be used to manage FTP files.

However, this version of the FTP support itself is only to meet the needs of the individual, so it is a little bit humble, now here to share, for reference only: download.

It is called in the same way as the original managed local file:

1                  varFtpaction =NewFtpaction ("FTP Address","FTP Account","ftp Password");2Ftpfileinfo _rootftpfileinfo = Ftpaction.getlistdirectory (string. Empty). Where (p = = P.name = ="FTP Top-level folders"). First ();3 4Ftpfilesystemdriver Driver =Newftpfilesystemdriver ();5  6                  varRoot =NewFTPRoot (_rootftpfileinfo,7                          "/ http"+ Request.Url.Authority +"/files/"+folder)8                  {9URL =".. /file/openfile? Path=",TenIsReadOnly =false,//Can is readonly according to user ' s membership permission OneAlias ="File Server",//Beautiful name given to the Root/home folder AMAXUPLOADSIZEINMB = -,//Limit imposed to user uploaded file -Lockedfolders =Newlist<string> (New string[] {"Folder1" }), -Ftpserverip ="FTP Address", theFtpuser ="FTP Account", -FTPPassword ="ftp Password" -                  }; - driver. Addroot (root); +                  varConnector =NewConnector (driver); -   +                  returnConnector. Process ( This. HttpContext.Request);

Web file Management: Elfinder.net (FTP-enabled)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.