Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

limits_uploads_max error?

Quote Reply
limits_uploads_max error?
Hi

Set to 10 from admin.

From user end after 9 attachments it gives error message on attaching 10th one.

You are only allowed to have 10 attachments.

This is on 2.2RC1 The image file attached. Even the Template::dump shows 9 attachments. (nessa derivative template)

Also though the attachments are cleaned up, but the directories in which these attachments are under upload never gets deleted from server.

Thnx

Anup

Last edited by:

anup123: Oct 16, 2003, 3:55 PM
Quote Reply
Re: [anup123] limits_uploads_max error? In reply to
This patch should fix it up:

Code:
--- Attach.pm.orig Thu Oct 16 19:18:29 2003
+++ Attach.pm Thu Oct 16 19:17:46 2003
@@ -157,7 +157,7 @@
}

# Check max uploads allowed
- if ($num >= $CFG->{limits}->{uploads_max}) {
+ if ($num > $CFG->{limits}->{uploads_max}) {
unlink "$data_dir/$safe_file" or $self->error("UNLINK", "FATAL", "$data_dir/$safe_file", $!);
return $self->error('ATTACHERR_MAX', 'WARN', $CFG->{limits}->{uploads_max});
}
@@ -246,7 +246,7 @@
}

# Check max uploads allowed
- if ($num >= $CFG->{limits}->{uploads_max}) {
+ if ($num > $CFG->{limits}->{uploads_max}) {
return $self->error('ATTACHERR_MAX', 'WARN', $CFG->{limits}->{uploads_max});
}

This is to GMail::Email::Attach.pm

I've also attached the patch file to the post in case you want it. Make a backup of the original in case I messed something else up :)

~Charlie
Quote Reply
Re: [Chaz] limits_uploads_max error? In reply to
Thanks, I've fixed this in CVS.

Adrian