Skip to content
Other versions

Loading…

Download document with direct link

You can download a document from OpenKM using a command line utility like wget. There is a service with BASIC authentication for this task. You can reference a document by UUID using the uuid parameter or by path, using the path parameter. In the same URL you need to specify the user and password.

Available parameters:

  • The parameter uuid is the document UUID
  • The parameter path is the document path.
  • The parameter inline set when document must be downloaded as attachment or shown inline. It’s a boolean parameter, allowed values are true or false.

Sample:

http://user:password@localhost:8080/OpenKM/Download?uuid=4ca63b87-e340-443e-aeef-6c7e2fb57aea
http://user:password@localhost:8080/OpenKM/Download?path=/okm:root/test/test.doc

This ease some integration tasks:

Terminal window
$ wget http://okmAdmin:admin@localhost:8080/OpenKM/Download?uuid=xxx-yyy-zzz