Can I use asp FileUpload to select a folder?

后端 未结 2 2055
独厮守ぢ
独厮守ぢ 2021-01-22 21:29

I need something like the FileUpload control in asp.net that will allow the user to browse for a folder and enter a file name of a new file to upload.

From what I\'ve se

2条回答
  •  温柔的废话
    2021-01-22 21:45

    C# has build-in FTPrequest class where you can create folders, upload files, delete files etc.

    If you want to upload folders from a webpage, you cannot use this technology in the browser, then you will have to use a rich-client such as Java, Flash or similar plugin.

    If you can provide the users with a Windows or Mac client, you can use C# (either .NET or Mono) for the FTP transfer.

    ZIP files arent a problem for ASP.net nor C#, but you still only upload 1 file (zip-archive) and then its up to the server to unzip it using eg. C#. Look at 7-Zip which is opensource, then you might get some ideas too.

    You could also just try and use the build-in lib for it (compression):

    http://www.eggheadcafe.com/community/csharp/2/10050636/how-to-compress-and-decompress-file-in-c.aspx

    or try this link...

    http://www.aurigma.com/docs/iu7/uploading-folders-in-aspnet.htm

提交回复
热议问题