Maximum file size which is allowed for upload to the server.
Syntax
Initialize
JavaScript | ![]() |
---|---|
<script type="text/javascript" src="iuembed.js"></script> <script type="text/javascript"> var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500); //...other params... iu.addParam("MaxFileSize", "0"); //...other params... iu.writeHtml(); </script> |
Get/Set Value in Runtime
JavaScript | ![]() |
---|---|
getImageUploader("ImageUploaderID").setMaxFileSize(value); value = getImageUploader("ImageUploaderID").getMaxFileSize(); |
Property Value
A non-negative integer value that specifies maximum size (in bytes) for files allowed for upload. If the value is 0
then there is no limit.
Default value is "0" (no limit).
Remarks
This property limits only a single file. If you want to set limit for all selected files, use the MaxTotalFileSize property.
See Also
Examples
Specifying Restrictions for Size and Number of FilesReference
AllowMultipleSelection PropertyFileIsTooLargeText Property
FileIsTooSmallText Property
MaxFileCount Property
MaxTotalFileSize Property
MessageFileSizeIsTooSmallText Property
MessageMaxFileCountExceededText Property
MessageMaxFileSizeExceededText Property
MessageMaxTotalFileSizeExceededText Property
MinFileSize Property
TotalFileSize Property
UploadFileCount Property
UploadFileCountChange Event