PhysicalFileSystemProvider.UploadFile(FileSystemUploadFileOptions) Method

Uploads a file.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public virtual void UploadFile(
    FileSystemUploadFileOptions options
)

Parameters

Name Type Description
options FileSystemUploadFileOptions

Options related to the operation.

Remarks

The following example illustrates how to overwrite the UploadFile method.

Refer to the Azure Server-Side Binding online demo to get the whole example code.

public void UploadFile(FileSystemUploadFileOptions options) {
    string destinationKey = $"{options.DestinationDirectory.Path}/{options.FileName}";
    //...
}
See Also