Fix to use universal upload tracking directory

https://forum.virtualmin.com/t/upload-progress-bar-not-showing/136374?u=ilia
This commit is contained in:
Ilia Ross
2026-01-24 00:37:52 +02:00
parent 202a1b0b78
commit e8e804ddca
2 changed files with 3 additions and 20 deletions

View File

@@ -28,13 +28,7 @@ print "</table></center>\n";
print "</form>\n";
# Find the location of the user's upload progress file
if ($in{'uid'}) {
@uinfo = getpwuid($in{'uid'});
$upfile = "$uinfo[7]/.tmp/upload.$id";
}
else {
$upfile = &tempname_dir()."/upload.$id";
}
my $upfile = &tempname_dir_sys()."/upload.$id";
# Read the tracker file in a loop until done, or until 1 minute has passed
# with no progress