FileSystemUploadFileOptions.TempFile Property
In This Article
Gets a temporary file.
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public FileInfo TempFile { get; }
#Property Value
Type | Description |
---|---|
File |
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