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

UploadFileInfo.LastModified Property

Returns the file’s last modified date.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public long LastModified { get; set; }

#Property Value

Type Description
Int64

The number of ticks that corresponds to the date and time when the file was last modified.

#Remarks

The LastModified property returns the number of ticks that corresponds to the date and time when the file was last modified. For files with an unknown last modified date, the property returns the number of ticks that corresponds to the current date.

The following example uses this property in the FileUploadStarted event handler:

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

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