HttpFileCollection.Get Method (String)
.NET Framework 3.0
Returns the HttpPostedFile object with the specified name 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 file object named "CustInfo" from the collection sent by the client and retrieves the name of the actual file represented by the object.
HttpFileCollection myFileColl = get_Request().get_Files();
HttpPostedFile myPostedMember = myFileColl.Get("CustInfo");
String myFileName = myPostedMember.get_FileName();
var myFileCollection : HttpFileCollection = Request.Files var myPostedMember : HttpPostedFile = myFileCollection.Get("CustInfo") var myFileName : String = myPostedMember.FileName
Community Additions
ADD
Show: