Compare commits
No commits in common. "0bf3061852a549007d43465c5c0af7c9cea99708" and "215a10186ef7ce458dc48aa6c379b1d4c629d9c7" have entirely different histories.
0bf3061852
...
215a10186e
@ -190,11 +190,7 @@ class ClouddropUploader {
|
||||
try { fs.closeSync(fd); } catch {}
|
||||
}
|
||||
|
||||
// 3. Complete session — all bytes are already on the server at this point.
|
||||
// We MUST NOT throw here, otherwise the upload-manager would retry the entire
|
||||
// multi-GB upload. Any failure (timeout, non-JSON, missing fileId, server still
|
||||
// post-processing) is swallowed and we fall back to sessionId as file_code.
|
||||
try {
|
||||
// 3. Complete session
|
||||
const completeRes = await request(`${API_BASE}/upload/${sessionId}/complete`, {
|
||||
method: 'POST',
|
||||
dispatcher: clouddropAgent,
|
||||
@ -204,11 +200,10 @@ class ClouddropUploader {
|
||||
headersTimeout: COMPLETE_TIMEOUT,
|
||||
bodyTimeout: COMPLETE_TIMEOUT
|
||||
});
|
||||
const completePayload = await this._parseJsonResponse(completeRes).catch(() => ({}));
|
||||
return completePayload.fileId || completePayload.id || sessionId;
|
||||
} catch {
|
||||
return sessionId;
|
||||
}
|
||||
const completePayload = await this._parseJsonResponse(completeRes);
|
||||
const fileId = completePayload.fileId || completePayload.id;
|
||||
if (!fileId) throw new Error('Clouddrop: Keine fileId in /upload/complete Antwort');
|
||||
return fileId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "multi-hoster-uploader",
|
||||
"version": "2.7.5",
|
||||
"version": "2.7.4",
|
||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user