codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » ASP » Article

Multiple File Upload in ASP.Net

Article by: Pratik Desai (8/29/2003)
Bookmark us now! Add to Favourites
Email a friend! Tell a friend
Summary: In this article we will upload multiple files using the HtmlInputFileControl and Files property of the Request object that return a reference to HtmlFileCollection which holds collection of HttpPostedFile objects
Viewed: 228665 times Rating (131 votes): 
 3.6 out of 5
  Rate this Article   Read Comments   Post Comments

Multiple File Upload in ASP.Net



Introduction


File uploading always has been challenging. .Net framework comes with pre built class that has made file uploading relatively simple. In this article we will upload multiple files using the HtmlInputFileControl and Files property of the Request object that return a reference to HtmlFileCollection. But first lets get familiar with the basics of file uploading.

Basics of File Uploading


1.Uploading a file from the client to the web browser
The following are the essential ingredients for uploading the file from the client.
The form declaration should use encryption of multipart/form-data and method of post.
<form id=â€