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

FileSystemUploadFileOptions.TempFile Property

Gets a temporary file.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FileInfo TempFile { get; }

Property Value

Type Description
FileInfo

The temporary file.

Remarks

In the example below, the CloudBlockBlob.UploadFromFile method gets a temporary file’s full name as a parameter to upload this file to the Blob service.

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

public class MyFileSystemProvider : IFileUploader {
    public void UploadFile(FileSystemUploadFileOptions options) {
        string destinationKey = $"{options.DestinationDirectory.Path}/{options.FileName}";
        CloudBlockBlob newBlob = Container.GetBlockBlobReference(destinationKey);
        newBlob.UploadFromFile(options.TempFile.FullName);
    }
}

Concepts

See Also