Class UploadedFileInfo
Metadata describing one stored uploaded file.
Inherited Members
Namespace: CoreUpload.Models
Assembly: CoreUpload.dll
Syntax
public class UploadedFileInfo
Properties
ContentHash
Gets or sets the server-computed SHA-256 of the stored content (lowercase hex), populated when EnableInstantUpload is on. Used by the instant-upload dedupe index; never taken from the client.
Declaration
public string? ContentHash { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContentType
Gets or sets the reported content type when available.
Declaration
public string? ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreatedUtc
Gets or sets the UTC timestamp when the upload metadata was created.
Declaration
public DateTime CreatedUtc { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
FileName
Gets or sets the original file name.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FileSize
Gets or sets the file size in bytes.
Declaration
public long FileSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Guid
Gets or sets the GUID assigned to the uploaded file.
Declaration
public Guid Guid { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
IsPersisted
Gets or sets a value indicating whether the upload has been marked as persisted. Persisted uploads are not removed by routine temp cleanup.
Declaration
public bool IsPersisted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RelativePath
Gets or sets the sanitized folder-relative path ('photos/2026/a.jpg') supplied by folder uploads, or null for plain files. Already traversal-defused via RelativeUploadPath; still combine it under a fixed root when recreating the tree.
Declaration
public string? RelativePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |