Skip to content

DefaultUploadStorage constructor

Initializes a new instance of the DefaultUploadStorage class.

public DefaultUploadStorage(IOptions<UploadSettings> options, 
    IWebHostEnvironment? hostEnvironment = null, IDiskUploadFileSystem? fileSystem = null)
parameter description
options The upload storage options.
hostEnvironment The web host environment.
fileSystem The file system.

Exceptions

exception condition
ArgumentNullException One of the arguments is null.
ArgumentException Options.Url or Options.Path is empty.

See Also