HttpFileCollection.Get Method (Int32)
.NET Framework 3.0
Returns the HttpPostedFile object with the specified numerical index from the file collection.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following example retrieves the first file object (index = 0) from the collection sent by the client and retrieves the name of the file represented by the object.
HttpFileCollection myFileColl = get_Request().get_Files(); HttpPostedFile myPostedMember = myFileColl.Get(0); String myFileName = myPostedMember.get_FileName();
var myFileCollection : HttpFileCollection = Request.Files var myPostedMember : HttpPostedFile = myFileCollection.Get(0) var myFileName : String = myPostedMember.FileName
Community Additions
ADD
Show: