首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Flex 上传文件,服务端.net

using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class upload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)     {         HttpFileCollection uploadedFiles = Request.Files; string Path = Server.MapPath("upload"); for (int i = 0; i < uploadedFiles.Count; i++)         {             HttpPostedFile F = uploadedFiles[i]; if (uploadedFiles[i] != null && F.ContentLength > 0)             { string newName = F.FileName.Substring(F.FileName.LastIndexOf("\\") + 1);                 F.SaveAs(Path + "//" + newName);             }         }     } }

01
领券