Ilia Ross
2026-01-26 21:59:39 +02:00
parent 58c9efd7ea
commit bfb496ca29
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if ($in{'uid'}) {
$upfile = "$uinfo[7]/.tmp/upload.$id";
}
else {
$upfile = &tempname_dir()."/upload.$id";
$upfile = "$ENV{'WEBMIN_VAR'}/uploads/upload.$id";
}
# Read the tracker file in a loop until done, or until 1 minute has passed
+2 -2
View File
@@ -1071,10 +1071,10 @@ if ($<) {
$vardir = "$uinfo[7]/.tmp";
}
else {
$vardir = &tempname_dir();
$vardir = "$ENV{'WEBMIN_VAR'}/uploads";
}
if (!-d $vardir) {
&make_dir($vardir, 0755);
&make_dir($vardir, 0750);
}
# Remove any upload.* files more than 1 hour old