HttpPostedFile.ContentLength Property

 

Gets the size of an uploaded file, in bytes.

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

public int ContentLength { get; }

Property Value

Type: System.Int32

The file length, in bytes.

.NET Framework
Available since 1.1
Return to top
Show: