From ed14250fe228a8605954d91dc5dede2dd7cd2744 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 9 Dec 2021 14:10:24 +0200 Subject: [PATCH] fix(client) load: Upload stuck for zero byte files (#359) --- client/dom/load.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/dom/load.js b/client/dom/load.js index 4351f271..f76cbe86 100644 --- a/client/dom/load.js +++ b/client/dom/load.js @@ -120,8 +120,10 @@ module.exports.put = (url, body) => { if (!over) return; - if (xhr.status === OK) + if (xhr.status === OK) { + emitter.emit('progress', 100); return emitter.emit('end'); + } const error = Error(xhr.responseText); emitter.emit('error', error);