FileUploadBehavior constructor
namespace: Serenity.Services assembly: Serenity.Net.Web
Creates a new instance of the class.
public FileUploadBehavior(IUploadValidator uploadValidator, IImageProcessor imageProcessor,
IUploadStorage storage, IFilenameFormatSanitizer formatSanitizer = null)
| parameter | description |
|---|---|
| uploadValidator | Upload validator |
| imageProcessor | Image processor |
| storage | Upload storage |
| formatSanitizer | Filename format sanitizer |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | One of the arguments is null |
See Also
- interface IUploadValidator
- interface IImageProcessor
- interface IUploadStorage
- interface IFilenameFormatSanitizer
- class FileUploadBehavior