Version

MaxFileSize Property (HtmlBoxUpload)

Gets or sets the maximum file size (in bytes) that the server will accept when uploading files.
Syntax
'Declaration
 
Public Property MaxFileSize As Integer
public int MaxFileSize {get; set;}

Property Value

The maximum file size (in bytes) that will be accepted by the server when uploading files. The default value is 1048576.
Remarks

If a user attempts to upload a size larger than the value specified here, the file will not be accepted and an error message will be displayed. Set this property to 0 to accept any files. Set the HtmlBoxUpload.UploadEnabled property to false to completely disable file upload.

Requirements

Target Platforms: Windows 10, 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