修改图片上传和视频上传限制可配置化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user