一次多个文件上传 [英] multiple file upload in onetime

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

问题描述

这是我的代码



this is my code

// Get the HttpFileCollection
HttpFileCollection hfc = Request.Files;
for (int i = 0; i < hfc.Count; i++)
{
    HttpPostedFile hpf = hfc[i];
    if (hpf.ContentLength > 0)
    {
        hpf.SaveAs(Server.MapPath(@"~\MyFiles\") + Path.GetFileName(hpf.FileName));
    }
}





没有检索到错误但是没有工作帮助plzzz



not retrieve error but its not working help plzzz

推荐答案

你应该看看这些..

使用C#上传多个文件并在ASP.NET中创建一个Zip文件 [ ^ ]

Writing-upload-multiple-files-at- a-time-functional-in-dot-net-c-specificl [ ^ ]

jQuery使用带有多个文件上载插件的Asp.net上传多个文件示例 [ ^ ]

FileUpload - 将文件上传到服务器而不点击按钮 [ ^ ]

用一键上传多个文件点击 [ ^ ]

Asp.Net中的多个文件上传 [ ^ ]
You should have a look at these..
Uploading multiple files and creating a Zip File in ASP.NET with C#[^]
Writing-upload-multiple-files-at-a-time-functionality-in-dot-net-c-particularl[^]
jQuery Upload Multiple Files using Asp.net with Multiple File Upload Plugin Example [^]
FileUpload - uploading file to the server without clicking a button[^]
Upload multiple files with One Button Click[^]
Multiple File Upload in Asp.Net[^]


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

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