mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user