修改图片上传和视频上传限制可配置化

This commit is contained in:
2026-05-26 13:53:40 +08:00
parent 9edbe83376
commit a0c94f3eac
3 changed files with 7 additions and 3 deletions
@@ -16,4 +16,6 @@ public class FileUploadSettings
{
public long MaxFileSize { get; set; } = 3 * 1024 * 1024; // 5MB
public List<string> AllowedContentTypes { get; set; } = new();
public int DailyUploadLimit { get; set; } = 5;
public int VideoDailyUploadLimit { get; set; } = 50;
}