DefaultUploadStorage constructor
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates a new instance of the object
public DefaultUploadStorage(IOptions<UploadSettings> options,
IWebHostEnvironment hostEnvironment = null, IDiskUploadFileSystem fileSystem = null)
| parameter | description |
|---|---|
| options | Upload storage options |
| hostEnvironment | Web host environment |
| fileSystem | File system |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | One of arguments is null |
| ArgumentOutOfRangeException | Options.URL or Options.Path is empty |
See Also
- class UploadSettings
- interface IDiskUploadFileSystem
- class DefaultUploadStorage