Class MediaOptions
Limits of the media repository, configuration section Section.
Implements
Inherited Members
Namespace: Uniform.Matrix.Server.Configuration
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed record MediaOptions : IEquatable<MediaOptions>
Fields
| Edit this page View SourceSection
Configuration section name.
Declaration
public const string Section = "Media"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceAllowUnauthenticatedDownloads
Whether to serve the deprecated downloads and thumbnails of /_matrix/media/v3, which need no access token, for older clients; anyone with a link can then fetch the file.
Declaration
public bool AllowUnauthenticatedDownloads { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxPendingUploads
How many created but not yet uploaded media a user may have at once.
Declaration
public int MaxPendingUploads { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MaxThumbnailSourcePixels
Largest image, in pixels, that thumbnails are made from; larger images get no thumbnail.
Declaration
public long MaxThumbnailSourcePixels { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
MaxUploadSize
Largest upload in bytes; 50 MiB by default.
Declaration
public long MaxUploadSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
PendingUploadLifetime
How long media created with /media/v1/create waits for its content before it can no longer be uploaded.
Declaration
public TimeSpan PendingUploadLifetime { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |