UploadFileInfo.LastModified Property
Returns the file’s last modified date.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
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:
<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