Page 1 of 1

Knowledge base attachments

Posted: Mon Sep 22, 2014 3:33 pm
by bastiaan.c
Hi,

I was hoping to get some help for this.

1 - Each 6 months my ticket system has grown so large that I decided to make an archive each time.
2 - That means that I make a separate installation (copy) of the complete ticket system.
3 - Then in the current ticket system, I delete every ticket and every attachment
4 - Unfortunately also the knowledge base article attachments are in that folder :roll:
5 - Is there a way that I could store knowledge base attachments in a different folder ?
6 - Any help on this would be great :)
7 - Thanks for all you do

Re: Knowledge base attachments

Posted: Mon Sep 22, 2014 3:54 pm
by Klemen
Well the KB attachments are always 32 chars long + ".jpg" (or whatever), so in total usually 36 chars. Also, KB attachments never have "_" or "-" in their name. You can create a script that will delete everything except such files.

The alternative would be to overwrite the $hesk_settings['attach_dir'] variable to another folder inside knowledgebase-related files. You would also need to create a copy of "download_attachment.php" file for use in KB and overwrite the $hesk_settings['attach_dir'] variable there as well.

Re: Knowledge base attachments

Posted: Mon Sep 22, 2014 4:17 pm
by bastiaan.c
Thanks Klemen for your fast reply.

I understand that this is not just a quick fix :(

I guess with my knowledge it is best to do all manually then :roll: