Limit upload to compressed files

Good morning,

we allow our customers to upload files (configuration files, kernel
dumps etc) to their ticket. Unfortunately not all customers follow the
rule and compress their uploads, so it can be that they upload a config
file with >20MB (compressed with standard zip it’s <1MB).

So big question - can I limit the upload to .zip /.gz/.rar.7z or
whatever on a easy way ? Any idea ?

Thanks and best regards,

Michael

Hi,

Uploads processing is done in multiple places, so it’s doable with
several callbacks and custom code.

It’s possible to auto archive big files when ticket is created or
updated. I did it once many years ago, but code is not public and I
even don’t have access to it.On Tue, Nov 8, 2011 at 12:23 PM, Michael Polenske Michael.Polenske@skm-skyline.de wrote:

Good morning,

we allow our customers to upload files (configuration files, kernel dumps
etc) to their ticket. Unfortunately not all customers follow the rule and
compress their uploads, so it can be that they upload a config file with

20MB (compressed with standard zip it’s <1MB).

So big question – can I limit the upload to .zip /.gz/.rar.7z or whatever on
a easy way ? Any idea ?

Thanks and best regards,

Michael

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Barcelona, Spain — November 28 & 29, 2011

Best regards, Ruslan.

Hi Ruslan,

thanks for your reply.

What do you mean with “auto archive” - export attached files directly after ticket creation or something similar ? Is is tricky to implement ? Maybe also someone else is interested in such a solution (maybe since prices for harddisks go higher and higher now :slight_smile: )

Cheers - MichaelFrom: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On Behalf Of Ruslan Zakirov
Sent: Dienstag, 8. November 2011 21:56
To: Michael Polenske
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Limit upload to compressed files

Hi,

Uploads processing is done in multiple places, so it’s doable with several callbacks and custom code.

It’s possible to auto archive big files when ticket is created or updated. I did it once many years ago, but code is not public and I even don’t have access to it.

Hi Ruslan,

thanks for your reply.

What do you mean with “auto archive” - export attached files directly after ticket creation or something similar ? Is is tricky to implement ?

Auto archive - archive attached files before those are inserted into
DB if name/size matches some conditions. Tricky, but doable.

Maybe also someone else is interested in such a solution (maybe since
prices for harddisks go higher and higher now :slight_smile: )

Cheers - Michael

Best regards, Ruslan.

Hi,

I think the easiest way is this:

But:

  • it’s not yet supported by all browsers
  • it’s not on server side, so can be ignored

Bekeny
Docca OutSource IT Ltd.On Tue, Nov 8, 2011 at 9:23 AM, Michael Polenske < Michael.Polenske@skm-skyline.de> wrote:

Good morning,****


we allow our customers to upload files (configuration files, kernel dumps
etc) to their ticket. Unfortunately not all customers follow the rule and
compress their uploads, so it can be that they upload a config file with

20MB (compressed with standard zip it’s <1MB).****


So big question – can I limit the upload to .zip /.gz/.rar.7z or whatever
on a easy way ? Any idea ?****


Thanks and best regards,****

Michael****



RT Training Sessions (http://bestpractical.com/services/training.html)

  • Barcelona, Spain — November 28 & 29, 2011