Page 1 of 1

Capture a copy of uploaded files?

PostPosted:Thu Oct 24, 2019 3:04 pm
by tommp
Hi!

When a file is uploaded into OpenKM is there a method to capture a copy of that file and store it in a folder in its native format outside of the OpenKM application? We are new to OpenKM so it might be obvious to experienced users...

Thanks!
Tom

Re: Capture a copy of uploaded files?

PostPosted:Sat Oct 26, 2019 9:28 am
by jllort
May be done with Automation, the idea is intercept the "document creation" and in post stage duplicate the content in the way you wish. For it you need to reading:
https://docs.openkm.com/kcenter/view/ok ... ction.html
https://docs.openkm.com/kcenter/view/ok ... Properties ( to get the document properties path etc... )
The document bean ( https://docs.openkm.com/apidoc/com/okm/ ... ument.html )
https://docs.openkm.com/kcenter/view/ok ... ml#getName ( to document name from the path )
https://docs.openkm.com/kcenter/view/ok ... getContent ( when you have the stream is in your hand writing in the files system in the manner you decide )