fix: align backend APIs and upload flow

This commit is contained in:
2026-09-11 18:18:59 +08:00
parent 32177a7293
commit 898cf5dba0
69 changed files with 1081 additions and 153 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;