feat(upload): S3 multipart upload with offline resume and wake lock (#391)

* feat(upload): implement S3 multipart upload with offline resume and wake lock

* fix(upload): harden S3 sign and abort authorization, await confirmation, and clean up failed multipart uploads

* fix(webui): resume multipart upload on network recovery and log online event

* fix(webui): remove offline and online toast notifications
This commit is contained in:
Yiling-J
2026-09-07 16:49:00 +08:00
committed by GitHub
parent 62e86b703e
commit 67b767f1e8
23 changed files with 2157 additions and 419 deletions
@@ -347,10 +347,10 @@ describe('MobileFileBrowser', () => {
expect(patchMock).toHaveBeenCalledWith(
expect.objectContaining({
param: { teamId: 'team-1', taskId: 'task-2' },
json: {
json: expect.objectContaining({
fileId: 'server-file-2',
errorMessage: 'upload failed with status: 500',
},
errorMessage: expect.any(String),
}),
}),
)
})
@@ -412,10 +412,10 @@ describe('MobileFileBrowser', () => {
expect(patchMock).toHaveBeenCalledWith(
expect.objectContaining({
param: { teamId: 'team-1', taskId: 'task-3' },
json: {
json: expect.objectContaining({
fileId: 'server-file-3',
errorMessage: 'upload failed with error: Network error',
},
errorMessage: expect.any(String),
}),
}),
)
})