Version

MaxFileSize Method

Gets or sets the maximum size(in bytes) allowed for the file to be uploaded. If it is set to null or -1 there is no limitation otherwise if the size(of the selected file) exceeds this value it is not allowed to be uploaded. This option is used for validation only on client side and only if the browser supports HTML5 file API and share information about the file size
Syntax
'Declaration
 
Public Function MaxFileSize( _
   ByVal maxFileSize As System.Nullable(Of Integer) _
) As UploadWrapper
public UploadWrapper MaxFileSize( 
   System.Nullable<int> maxFileSize
)

Parameters

maxFileSize
Maximum size of the file.
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub