[Rt-devel] LargeAttachments ...
Michael Gilbert
mdgilb at u.washington.edu
Thu Mar 22 13:02:52 EDT 2007
We've added code that creates a DropAttach transaction if the attachment
size exceeds what is allowed. Our code-base differs somewhat
significantly from the latest stable release, but I've thrown together a
quick patch that should contain the differences between the code
snippets and the 3.6 files from the 3.6-RELEASE branch, attached.
If an agent attempts to attach a file that is too large, a transaction
will be created on the ticket similar to -
mdgilb - Attachment testlarge.txt too large to include with ticket (Max
size is 1048576 bytes)
Thu Mar 22 09:59:08 2007
--
Michael Gilbert
Software Support Group, Computing and Communications
University of Washington
Robert G. Werner wrote:
> Does anyone have any way to make RT fail noisily when someone attaches
> a file that is too large to a ticket?
>
> I'm running RT 3.6.3 with MySQL as the back end. I've set my
> max_packet size to be 2MB (a reasonable size IMO). I also set
> MaxAttachmentSize to be 2097152
>
> I would like my users (whether they are using the web interface or
> email) to get notified that their attachment will not be part of the
> ticket they are creating.
>
> If I need to create an overlay to trap this condition, Any
> suggestions as to where to start? I took a look at
> Attachmet_Overlay.pm but I don't see any easy way to get an error back
> out to the user.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Attachment.patch
Type: text/x-patch
Size: 2767 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070322/b30a9918/Attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Transaction.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070322/b30a9918/Transaction.bin
More information about the Rt-devel
mailing list