HttpPostedFileWrapper.ContentLength Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the size of an uploaded file, in bytes.

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

public override int ContentLength { get; }

Property Value

Type: System.Int32

The length of the file, in bytes.

.NET Framework
Available since 3.5
Return to top