fix(flash-transfer): finish seconds-pass flash uploads

A fileset that already exists on the server still needs the apply step
so the share is not left waiting for upload.

Fixes #420
This commit is contained in:
DrSmoothl committed 2026-08-26 23:14:35 +08:00
1 parent d474996485
commit ef73157c68
3 files changed
+9 -6

No files matched your search

@@ -90,7 +90,8 @@ export namespace PrepareUpload {
export const deserialize = (_ctx: Deps, body: FlashPrepareUploadResp): string | null => {
// sub-100 resp f2={f1:rkey}(正常上传,CAES/CAIS/CAQS/CAMS)。
// 秒传(文件已在服务端)时 f2 无 f1(rkey),返回 null,调用方跳过 sliceupload。
// 秒传(文件已在服务端)时 f2 无 f1(rkey),返回 null,调用方仍要 apply,
// 只跳过 sliceupload。
return body.rkeyWrap?.rkey ?? null;
};