fix: close desktop/multipart/abort route missing res.json and closing brace

This commit is contained in:
Zac Gaetano 2026-04-08 22:16:48 -04:00
parent c4158f0cfd
commit 340837fa72

View file

@ -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.