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. In the same URL you need to specify the user and password.

When you share the user and password for downloading files is a good practice configure the user profile disallowing all the features. That will lock UI access to the user.

Available parameters:

  • The parameter uuid is the document UUID
  • 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.

When you use parameter path, it is a good practice to encode url to prevent problems with special characters.

Sample:

http://user:password@@localhost:8080/openkm/download?uuid=def34bcc-3291-4e11-9aa3-e86ae32f5a6c

This ease some integration tasks:

$ wget http://okmAdmin:admin@localhost:8080/openkm/download?uuid=xxx-yyy-zzz

Table of contents [ Hide Show ]