资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.xml.Linq;

//51aspx
namespace MutiFileUpload
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender EventArgs e)
        {
        }
        protected void Button1_Click(object sender EventArgs e)
        {
            int FileNum = 0;
            string filepath = Server.MapPath(“./“) + “UploadFile“;
            string filename = DateTime.Now.ToString(“yyyyMMddHHmmss“);
            HttpFileCollection hfc = Request.Files;
            for (int i = 0; i < hfc.Count; i++)
            {
                HttpPostedFile hpf = hfc[i];

                if (hfc[i].ContentLength > 0)
                {
                  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-29 11:46  多文件上传源码\
     目录           0  2020-06-29 11:47  多文件上传源码\App_Data\
     目录           0  2020-06-29 11:42  多文件上传源码\Backup\
     文件         851  2009-09-05 09:57  多文件上传源码\Backup\Default.aspx
     文件        1729  2009-09-07 08:58  多文件上传源码\Backup\Default.aspx.cs
     文件        2248  2009-09-04 17:27  多文件上传源码\Backup\Default.aspx.designer.cs
     文件        4148  2009-09-04 17:29  多文件上传源码\Backup\MutiFileUpload.csproj
     文件        1225  2009-09-04 17:29  多文件上传源码\Backup\MutiFileUpload.csproj.user
     文件         917  2009-09-07 08:59  多文件上传源码\Backup\MutiFileUpload.sln
     文件       18944  2009-09-07 09:03  多文件上传源码\Backup\MutiFileUpload.suo
     目录           0  2020-06-29 11:42  多文件上传源码\Backup\Properties\
     文件        1377  2009-09-04 17:26  多文件上传源码\Backup\Properties\AssemblyInfo.cs
     文件        7822  2009-09-04 17:25  多文件上传源码\Backup\Web.config
     文件         851  2009-09-05 09:57  多文件上传源码\Default.aspx
     文件        1729  2009-09-07 08:58  多文件上传源码\Default.aspx.cs
     文件        2248  2009-09-04 17:27  多文件上传源码\Default.aspx.designer.cs
     文件        4422  2012-11-19 09:17  多文件上传源码\MutiFileUpload.csproj
     文件        1067  2012-11-19 09:17  多文件上传源码\MutiFileUpload.csproj.user
     文件         917  2012-11-19 09:17  多文件上传源码\MutiFileUpload.sln
     文件       26112  2012-11-19 10:02  多文件上传源码\MutiFileUpload.suo
     目录           0  2020-06-29 11:42  多文件上传源码\Properties\
     文件        1377  2009-09-04 17:26  多文件上传源码\Properties\AssemblyInfo.cs
     文件        2974  2012-11-19 09:17  多文件上传源码\UpgradeLog.xml
     目录           0  2020-06-29 11:42  多文件上传源码\UploadFile\
     文件      186517  2012-11-19 09:18  多文件上传源码\UploadFile\2012111909183756.jpg
     文件      207243  2012-11-19 09:18  多文件上传源码\UploadFile\2012111909183756副本.jpg
     文件       41451  2012-11-19 09:18  多文件上传源码\UploadFile\201211190918377b1bedecbd3748289c0adb2b145b4657.png
     文件        9076  2012-11-19 09:21  多文件上传源码\UploadFile\20121119092007131U0QG1H60-1224J.png
     文件       16384  2012-11-19 09:21  多文件上传源码\UploadFile\Thumbs.db
     文件        1454  2012-11-19 09:19  多文件上传源码\Web.config
     目录           0  2020-06-29 11:42  多文件上传源码\_UpgradeReport_Files\
............此处省略14个文件信息

评论

共有 条评论