Method | Description | |
---|---|---|
FileExtensionsAttribute ( string allowedExtensions = "png,jpg,jpeg,gif" ) : System |
Provide the allowed file extensions, seperated via comma or pipe, defaults to "png,jpeg,jpg,gif"
|
|
FormatErrorMessage ( string name ) : string | ||
IsValid ( object value ) : bool |
Method | Description | |
---|---|---|
ValidateExtension ( string fileName ) : bool |
public FileExtensionsAttribute ( string allowedExtensions = "png,jpg,jpeg,gif" ) : System | ||
allowedExtensions | string | |
return | System |
public FormatErrorMessage ( string name ) : string | ||
name | string | |
return | string |