Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PhysicalFileSystemProvider.UploadFile(FileSystemUploadFileOptions) Method

Uploads a file.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
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