Class FileDto
Data transfer object for file information including content and metadata.
Inherited Members
Namespace: OEMS.Core.Application.DTOs.File
Assembly: OEMS.Core.dll
Syntax
public class FileDto
Properties
Content
Gets or sets the binary content of the file.
Declaration
public byte[] Content { get; set; }
Property Value
Type | Description |
---|---|
byte[] | The actual file data as a byte array. |
Description
Gets or sets an optional description for the file.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | A text description providing context about the file's purpose. |
Id
Gets or sets the unique identifier of the file.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | The GUID that uniquely identifies this file, used when returning file info. |
Name
Gets or sets the name of the file.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The original filename including extension. |
Size
Gets or sets the size of the file in bytes.
Declaration
public long Size { get; set; }
Property Value
Type | Description |
---|---|
long | The file size in bytes. |
Type
Gets or sets the MIME type or file extension of the file.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | The file type identifier (e.g., "image/jpeg", ".pdf"). |