UploadFileInfo.LastModified Property

Returns the file’s last modified date.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public long LastModified { get; }

Property Value

Type Description
Int64

The number of milliseconds from the Unix epoch (January 1, 1970 at midnight) to the file’s last modified date.

Remarks

The LastModified property returns the number of milliseconds from the Unix epoch (January 1, 1970 at midnight) to the file’s last modified date. For the files with the unknown last modified date, the property returns the current date.

The following example demonstrates how to use this property in the FileUploadStarted event handler:

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/" 
          FileUploadStarted="@OnFileUploadStarted"
          ShowFileList="false">
</DxUpload>

@code {
    void OnFileUploadStarted(FileUploadEventArgs e) {
        // ...
        var lastModifiedDate = e.FileInfo.LastModified;
        // ...
    }
}
See Also