Zitat von Andrew Morgan <[EMAIL PROTECTED]>: > On Tue, 8 May 2007, Chuck Hagenbuch wrote: > >> Quoting Andrew Morgan <[EMAIL PROTECTED]>: >> >>> So... Back to my original question. Is there a way to prevent the >>> compose form from being "reset" when a too-large attachment is uploaded? >>> Can anyone else reproduce this behavior or is it just me? >> >> It's not just you. If a file exceeds max_post_size, we get _no_ POST >> data at all. So in those cases this is not much we can do unfortunately. > > That's what I figured. :( > > So... what about my suggestion to have a size limit in IMP itself? Then > the POST would still work but IMP could discard the attachment after it > checks the size. I might be able to come up with a patch for this.
That's what the upload_max_filesize setting is for. This one can be catched, and actually is catched from the attachment code. Just set the max_post_size high enough to not get hit before the upload_max_filesize limit gets hit. Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [EMAIL PROTECTED]
