How to upload multiple files using multiple fileupload controls in asp.net?
I have a webpage(.aspx) which contains MULTIPLE FileUpload controls. Default.aspx <asp:FileUpload ID="FileUploadPort" runat="server" CssClass="Upload" Multiple="Multiple"/> <asp:FileUpload ID="FileUploadSearchImages" runat="server" CssClass="Upload" Multiple="Multiple"/> Default.aspx.cs protected void btnSubmit_Click(object sender, EventArgs e) { string filenm = string.Empty; HttpFileCollection fileCollection = Request.Files; for (int i = 0; i < fileCollection.Count; i++) { HttpPostedFile uploadfile = fileCollection[i]; if (uploadfile.ContentLength > 0) { string filename = uploadfile.FileName;
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.