Page 1 of 1

auto delete files on upload

PostPosted:Sun Jan 31, 2016 9:40 pm
by deranjer
I there a way to automatically delete files on upload? I batch upload from zip file and need to automatically delete thumbs.db when it is uploaded.

Re: auto delete files on upload

PostPosted:Tue Feb 02, 2016 4:45 pm
by jllort
You can doing it with automation ( events ) based on document creation. Take a look at these url:
http://wiki.openkm.com/index.php/Automation
http://wiki.openkm.com/index.php/Enable_automation
http://wiki.openkm.com/index.php/Extend_automation_6.0

I suggest you download openkm portable what comes with some sample http://sourceforge.net/projects/openkmportabledev/

Re: auto delete files on upload

PostPosted:Wed Feb 03, 2016 4:04 am
by deranjer
Yes, unfortunately the automation doesn't work like I assumed it would, I did a validation of "NameContains" and added an action of "AddKeyword" of "delete" but does not appear to work. Since it is just me using OpenKm, does not seem worth the effort.

Re: auto delete files on upload

PostPosted:Thu Feb 04, 2016 1:03 am
by deranjer
Nevermind, after I restarted the service it now appears to work. Thanks.

Re: auto delete files on upload

PostPosted:Fri Feb 05, 2016 8:04 am
by jllort
Should not be necessary restarting service to take it running, I suspect there was something else. You can debug your validation and action classes and also the AutomationManager -> method getValidActions