fix: close desktop/multipart/abort route missing res.json and closing brace
This commit is contained in:
parent
c4158f0cfd
commit
340837fa72
1 changed files with 2 additions and 0 deletions
|
|
@ -985,6 +985,8 @@ app.post("/api/desktop/multipart/abort", requireAuth, async (req, res) => {
|
|||
const { uploadId, key, bucket } = req.body;
|
||||
try { if (uploadId && key && bucket && s3Client) await s3Client.send(new AbortMultipartUploadCommand({ Bucket: bucket, Key: key, UploadId: uploadId })); } catch (_) {}
|
||||
desktopSessions.delete(uploadId);
|
||||
res.json({ success: true });
|
||||
});
|
||||
|
||||
// ==================== PARALLEL CHUNK UPLOAD (Option 4 — HTTP parallelism) ====================
|
||||
// Client splits files into 32 MB chunks and POSTs 6 concurrently.
|
||||
|
|
|
|||
Loading…
Reference in a new issue