Class ValidationMessages
Defines validation error messages for file upload operations in the SfUploader component.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class ValidationMessages : Object
Remarks
This class contains validation error messages that are generated when uploaded files fail to meet the specified validation criteria. These messages provide user-friendly feedback about why files were rejected during the upload process, helping users understand and correct validation issues such as file size restrictions or format requirements.
Constructors
ValidationMessages()
Declaration
public ValidationMessages()
Properties
MaxSize
Gets or sets the validation error message displayed when a file exceeds the maximum allowed file size.
Declaration
public string MaxSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the maximum file size validation error message, or |
Remarks
This property contains the error message that is displayed to users when they attempt to upload a file that exceeds the size limit specified by the MaxFileSize property. The message helps users understand the file size restriction and take appropriate action to either reduce the file size or select a smaller file.
MinSize
Gets or sets the validation error message displayed when a file is smaller than the minimum required file size.
Declaration
public string MinSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the minimum file size validation error message, or |
Remarks
This property contains the error message that is displayed to users when they attempt to upload a file that is smaller than the minimum size specified by the MinFileSize property. This validation helps prevent the upload of empty files or files that are too small to be meaningful for the intended application use case.