[rt-users] *****SPAM***** Re: Is there an easy way to disable attach files?

Kevin Falcone falcone at bestpractical.com
Mon Jan 4 14:50:29 EST 2010


On Mon, Jan 04, 2010 at 09:13:38AM +0100, Carlos Garcia Montoro wrote:
> Hi Kevin, list,
> 
> Sorry for the late answer. I was on holidays...
> 
> Your solution works. It prevents to upload files to RT but only if
> DropLongAttachments is defined. The only complain that I have about
> it is that it discard the file silently. The user sees that the
> upload of file has been recorded thus s/he thinks that the file is
> there. Only if s/he clicks the link of the file s/he can read "Large
> attachment dropped". It is not a big issue, but I would rather warm
> before and I probably wouldn't record this failed upload.

Unfortunately, thats going to require some coding to say that an
error occurred (RT doesn't see it as an error, it just sees it as
trimming your attachment to a byte)

-kevin

> Kevin Falcone wrote:
> >On Wed, Dec 23, 2009 at 11:29:37AM +0100, Carlos Garcia Montoro wrote:
> >>Hi,
> >>
> >>I'm being responsible to deploy RT on our institution. My boss
> >>doesn't want to allow the upload of attached files to tickets, so
> >>I'm disabling it. I thought that it would be possible though
> >>etc/RT_SiteConfig.pm. I have set MaxAttachmentSize to 0, but even
> >>with a 0 value the system let me upload files which I can later
> >>retrieve (hence they are on the database).
> >
> >What happens if you set this to 1 instead of 0 and also set
> >DropLongAttachments?
> >
> >-kevin
> >
> >>I now that I can copy every share/html file where there is an
> >>"upload field" to local/html and edit them to remove the code that
> >>shows this field, but that means at least editing 3 pages
> >>(Ticket/Create.html, Ticket/Update.html and Ticket/ModifyAll.html).
> >>Before I continue, I ask myself, and want to ask you, if there is an
> >>easier/better way to disable the upload of files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100104/12eaffe0/attachment.sig>


More information about the rt-users mailing list