Class MediaRow
A file in the media repository, uploaded by a local user; the bytes are stored in the media directory.
Inherited Members
Namespace: Uniform.Matrix.Server.Storage
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class MediaRow
Properties
| Edit this page View SourceContentType
Content type given at upload.
Declaration
public required string ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreatedTs
Upload time in milliseconds since the Unix epoch.
Declaration
public long CreatedTs { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
FileName
File name given at upload.
Declaration
public string? FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MediaId
Media ID, the last part of its mxc:// URI; primary key.
Declaration
public required string MediaId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Size
Size in bytes.
Declaration
public long Size { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
UserId
Uploader.
Declaration
public required string UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |