ContentLength Property
Collapse the table of content
Expand the table of content

HttpPostedFileBase.ContentLength Property


When overridden in a derived class, gets the size of an uploaded file, in bytes.

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

public virtual int ContentLength { get; }

Property Value

Type: System.Int32

The length of the file, in bytes.

Exception Condition


.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft