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:
@@ -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",
|
||||
"Исходный файл не найден в хранилище."
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user