From 4d69f15f485d921067031cd0c365c7483ebc9113 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 29 Oct 2021 01:04:38 +0200 Subject: [PATCH] fix empty files blocking successive uploads --- copyparty/web/up2k.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index eabb3901..cbecaa48 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -992,6 +992,7 @@ function up2k_init(subtle) { "lmod": lmod / 1000, "purl": fdir, "done": false, + "bytes_uploaded": 0, "hash": [] }, key = entry.name + '\n' + entry.size; @@ -1400,7 +1401,6 @@ function up2k_init(subtle) { function exec_hash() { var t = st.todo.hash.shift(); st.busy.hash.push(t); - t.bytes_uploaded = 0; var bpend = 0, nchunk = 0,