asp.net 一般处理程序(ashx)如何多次接收上传文件(多文件批量上传)
1个回答
展开全部
Like this :
比如前台有3个INPUT:
<form enctype= "multipart/form-data">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
</form>
然后后台:
HttpFileCollection files = HttpContext.Current.Request.Files;
//这个files里面就是你上传文件的集合。遍历即可。
比如前台有3个INPUT:
<form enctype= "multipart/form-data">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
<INPUT style= "WIDTH: 480px; HEIGHT: 22px " type= "file " name= "File " size= "60 ">
</form>
然后后台:
HttpFileCollection files = HttpContext.Current.Request.Files;
//这个files里面就是你上传文件的集合。遍历即可。
追问
我的是多选文件的批量上传,flash上传,多个form提交
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询