Implement media storage and processing features: update configuration in .env.example and appsettings files, enhance Docker setup for media storage, and add media-related services and database entities. Include ffmpeg for media handling and adjust Kestrel settings for large file uploads.

This commit is contained in:
Leonid Pershin
2026-07-24 08:33:11 +03:00
parent 1dd6991174
commit e15ecbdb29
47 changed files with 2599 additions and 1 deletions
@@ -0,0 +1,36 @@
using TeleWave.Application.Common.Models;
namespace TeleWave.Application.Media;
public static class MediaErrors
{
public static readonly Error NotFound = Error.NotFound(
"Media.NotFound",
"Медиа-ассет не найден."
);
public static readonly Error UnsupportedFormat = Error.Validation(
"Media.UnsupportedFormat",
"Неподдерживаемое расширение файла."
);
public static readonly Error EmptyFileName = Error.Validation(
"Media.EmptyFileName",
"Имя файла не задано."
);
public static readonly Error FileTooLarge = Error.Validation(
"Media.FileTooLarge",
"Файл превышает допустимый размер загрузки."
);
public static readonly Error InsufficientStorage = Error.Conflict(
"Media.InsufficientStorage",
"Недостаточно свободного места в хранилище."
);
public static readonly Error SourceNotFound = Error.NotFound(
"Media.SourceNotFound",
"Исходный файл не найден в хранилище."
);
}