Skip to main content
A newer version of this page is available. .
Tab

PhysicalFileSystemProvider.UploadFile(FileManagerFolder, String, Stream) Method

Implements a file upload.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public override void UploadFile(
    FileManagerFolder folder,
    string fileName,
    Stream content
)

Parameters

Name Type Description
folder FileManagerFolder

A FileManagerFolder object that is a folder where the file is being uploaded.

fileName String

A string value specifying the files name.

content Stream

A Stream that is the file content.

Remarks

The UploadFile method implements uploading a file when the default PhysicalFileSystemProvider is used.

If you create a custom file system provider inherited from the PhysicalFileSystemProvider class, you can override the UploadFile method to perform any custom actions when an end-user uploads a file.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UploadFile(FileManagerFolder, String, Stream) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also