replaced $session{cgi} with $session{req}
This commit is contained in:
parent
1b0adbb416
commit
c01d7e49d5
33 changed files with 76 additions and 66 deletions
|
|
@ -199,7 +199,7 @@ sub addFileFromFormPost {
|
|||
return "" if (WebGUI::HTTP::getStatus() =~ /^413/);
|
||||
my $filename;
|
||||
my $attachmentCount = 1;
|
||||
foreach my $tempPath ($session{cgi}->upload($formVariableName)) {
|
||||
foreach my $tempPath ($session{req}->upload($formVariableName)) {
|
||||
last if $attachmentCount > $attachmentLimit;
|
||||
if ($tempPath =~ /([^\/\\]+)$/) {
|
||||
$filename = $1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue