UploadedFileContentLength Property |
Gets the size in bytes of an uploaded file.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public abstract int ContentLength { get; }
Public MustOverride ReadOnly Property ContentLength As Integer
Get
public:
virtual property int ContentLength {
int get () abstract;
}
abstract ContentLength : int with get
Property Value
Type:
Int32The length of the file.
Examples
This example validates the file size of an uploaded file.
bool isValid = true;
if (file.ContentLength > MaxFileSize)
{
isValid = false;
}
Dim isValid As Boolean = True;
If file.ContentLength > MaxFileSize Then
isValid = False;
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also