Download documents straightly by their url

Nous essayons de faire OpenKM aussi intuitif que possible, mais tout avis est bienvenu.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
mamad
Expert Boarder
Expert Boarder
Posts: 130
Joined: Mon Jun 25, 2018 5:13 am

Download documents straightly by their url

Post by mamad » Thu Feb 13, 2020 8:28 am

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

jllort
Moderator
Moderator
Posts: 10990
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Download documents straightly by their url

Post by jllort » Sat Feb 15, 2020 7:09 pm

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

Post Reply