• Possible to Undo an Upload?

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #41330  by alexwgordon
 
Hi all,

I figured this was not possible since it would defeat the purpose of the system, but is it possible to UNDO an upload once its occurred? We've had a few instances where a user uploaded the wrong rev of the file and wanted to re-upload the correct one, without having to increase the revision twice. is this possible? Thanks!
 #41335  by jllort
 
Have several option from the easiest to the more complex:
1- Execute daily report ( crontab ) -> documents created and verify wrong name format.
2- Do Automation action based on document create -> at post, validate the name and if it's wrong, delete, remove, send some mail, show warning.
3- Do Automation action based on document create -> at pre ( probably need minimal source code modification ) -> evaluate the name before creating and if it's not compliant raise and exception.

Related url:
for crontab -> http://wiki.openkm.com/index.php/Crontab and http://wiki.openkm.com/index.php/Cronta ... h_metadata

for automation action -> Automation must be enabled doing a database sql insert http://wiki.openkm.com/index.php/Enable_automation and also take a look here http://wiki.openkm.com/index.php/Extend_automation_6.4 ( plugin feature is not present at community version ! )

Actions: https://sourceforge.net/p/openkm/code/H ... on/action/
for automation action at pre ->
https://sourceforge.net/p/openkm/code/H ... odule.java ( line 224 look at BaseDocumentModule ) and then https://sourceforge.net/p/openkm/code/H ... odule.java ( line 107 to 113 ). For what I'have seen seems you have document name int environment vars ( that's what you must evaluate into your own action class )

I suggest also download our portable dev environment https://sourceforge.net/projects/openkmportabledev/

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.