This documentation is archived and is not being maintained.

HttpFileCollection Class

Provides access to and organizes files uploaded by a client.

For a list of all members of this type, see HttpFileCollection Members.


[Visual Basic]
NotInheritable Public Class HttpFileCollection
   Inherits NameObjectCollectionBase
public sealed class HttpFileCollection : NameObjectCollectionBase
public __gc __sealed class HttpFileCollection : public
public class HttpFileCollection extends NameObjectCollectionBase

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Clients encode files and transmit them in the content body using multipart MIME format with an HTTP Content-Type header of multipart/form-data. ASP.NET extracts the encoded file(s) from the content body into individual members of an HttpFileCollection. Methods and properties of the HttpPostedFile class provide access to the contents and properties of each file.


Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

HttpFileCollection Members | System.Web Namespace