⚡ perf(webdav): 偏移写入分片并取消整文件落盘合并

This commit is contained in:
orion committed 2026-09-18 11:52:27 +08:00
1 parent 6d825e5fbc
commit 32298bfdeb
12 files changed
+690 -53

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
from typing import Optional
@@ -8,8 +8,8 @@ class SelectFileModel(BaseModel):
class InitChunkUploadModel(BaseModel):
file_name: str
chunk_size: int = 5 * 1024 * 1024
file_size: int
chunk_size: int = Field(default=5 * 1024 * 1024, gt=0)
file_size: int = Field(gt=0)
file_hash: str