Page 1 of 1

Download documents straightly by their url

PostPosted:Thu Feb 13, 2020 8:28 am
by mamad
Hi guys
As you know we can go to a specific document by entering its url in browser like below :
http://<ip address of server>/OpenKM/frontend/index.jsp?uuid=<uuid of document>
I want to know if its possible to download a document straightly by entering its url in the browser ? I mean i dont want to open the main window of openkm and then double click on the document to download it. I want a url that every time i enter it in the browser it starts downloading the specified document if i have read and download access.
Thanks in advance

Re: Download documents straightly by their url

PostPosted:Sat Feb 15, 2020 7:09 pm
by jllort
For authenticated users:
http://<ip address of server>/OpenKM/frontend/Download?uuid=<uuid of document>

For non authenticated users (
https://docs.openkm.com/kcenter/view/ok ... -link.html

In professional edition, we have the option to generate a token for downloading what does not require authentication.

I suggest take a look at both classes in github for a complete list of variables and options you have in this url's:
https://github.com/openkm/document-mana ... rvlet.java
https://github.com/openkm/document-mana ... rvlet.java

Re: Download documents straightly by their url

PostPosted:Wed Feb 26, 2020 10:51 am
by mamad
thanks it works.