fix: align backend APIs and upload flow

This commit is contained in:
2026-09-15 14:10:55 +08:00
parent 32177a7293
commit 53e6195938
149 changed files with 4791 additions and 435 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ namespace FileService.Domain.ValueObjects
public FileName(string value)
{
if(value.Length > 20)
if (string.IsNullOrWhiteSpace(value) || value.Length > 255)
{
throw new ArgumentException("文件名超出长度");
throw new ArgumentException("文件名不能为空且不能超过 255 个字符");
}
Value = value;