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, it is good practice to configure the user profile to disallow all the features. That will lock UI access for the user.

Available parameters:

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

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

Sample:

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

This eases some integration tasks:

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

Table of contents [ Hide Show ]