lots of changes

This commit is contained in:
Frank Dillon 2008-11-12 23:03:42 +00:00
parent 93df39d6f6
commit 615e0e3746
28 changed files with 2883 additions and 212 deletions

View file

@ -226,10 +226,13 @@ sub addFileFromFormPost {
require Apache2::Upload;
my $filename;
my $attachmentCount = 1;
$self->session->log->warn("trying to uplaod: ".$formVariableName);
foreach my $upload ($self->session->request->upload($formVariableName)) {
$self->session->errorHandler->info("Trying to get " . $upload->filename);
$self->session->errorHandler->warn("Trying to get " . $upload->filename);
return $filename if $attachmentCount > $attachmentLimit;
my $tempFilename = $upload->filename();
$self->session->log->warn("templFile is: ".$tempFilename);
next unless $tempFilename;
next unless $upload->size > 0;
next if ($upload->size > 1024 * $self->session->setting->get("maxAttachmentSize"));