From d0e0a1c193bcf708ca8efc79f3c4a63191459437 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 20 Jun 2022 08:42:30 -0700 Subject: [PATCH] Always update the status file at 0% --- web-lib-funcs.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index e44cd34c7..25a3455db 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -919,7 +919,8 @@ if (!$main::read_parse_mime_callback_flushed) { my $upfile = "$vardir/upload.$id"; if ($totalsize && $size >= 0) { my $pc = int(100 * $size / $totalsize); - if ($pc <= $main::read_parse_mime_callback_pc{$upfile}) { + if (defined($main::read_parse_mime_callback_pc{$upfile}) && + $pc <= $main::read_parse_mime_callback_pc{$upfile}) { return; } $main::read_parse_mime_callback_pc{$upfile} = $pc;