IUploadValidator.ValidateFile method
namespace: Serenity.Web assembly: Serenity.Net.Services
Validates file constraints
public void ValidateFile(IUploadFileConstraints constraints, Stream stream, string filename,
out bool isImageExtension)
parameter | description |
---|---|
constraints | The file constraints |
stream | Source stream |
filename | File name |
isImageExtension | Returns true if the file extension matches with constraints.ImageExtensions. |
See Also
- interface IUploadFileConstraints
- interface IUploadValidator