使用C#2005上传文件夹 [英] Folder upload using C# 2005

查看:101
本文介绍了使用C#2005上传文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是C#2005的新手.
我想上传包含其内容的整个文件夹.该文件夹应在客户端上压缩,而在服务器上解压缩...

我的项目需要它,请帮助我...:)

Hi
I''m a new to C# 2005..
I want to upload an entire folder with its contents. The folder should be zipped on the client side and unzipped on the server side...

I need it for my project please help me... :)

推荐答案

您应该这样做:如何在C#中创建Zip文件 [
You should have done this: http://www.google.co.in/search?hl=en&rls=com.microsoft%3Aen-US&q=folder+upload+zipped+C%23&aq=f&aqi=&aql=&oq=&gs_rfai=[^]

For start, read this: How To Create Zip Files In C#[^]


如果在谈论Web应用程序,
您无法在Web应用程序中上载文件夹.但是,将文件夹压缩后,它将成为zip文件,并且可以上传.
如果需要,用户可以选择n个文件,而您的应用程序应将其压缩并上传,这是不可能的.用户需要压缩文件并上传.
您可以使用zip应用程序在服务器端解压缩文件,也可以编写解压缩算法.
7-z [ ^ ]是一种这样的开源压缩工具.
If you are talking about web application,
You cannot upload a folder in a web application. However, after a folder is zipped, it becomes a zip file and can be uploaded.
If you want, a user selects n files and your application should zip it and upload, that''s not possible. The user needs to zip the files and upload.
You can unzip the files on the server side using zip applications or may write un-compress algorithm. 7-z[^] is one such open source compression tool.


这篇关于使用C#2005上传文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆