How to gennerate dowanloadable url for preview if have document's uuid

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
nhan@intra.co.kr
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Mon Aug 17, 2020 6:15 am

How to gennerate dowanloadable url for preview if have document's uuid

Post by nhan@intra.co.kr »

I wannt to integrate preview function into another website, openkm document guild using iframe and input document url, my question is how to generate document downloadable link for preview when know document's uuid. I have asp.net webserver and the webserver can use .net SDK.

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

Re: How to gennerate dowanloadable url for preview if have document's uuid

Post by jllort »

Depending on the document type the URL it changes should investigate the most relevant combinations. I suggest try with several document type and with browser tools you can watch the exact URL.

Also you can take a look at the source code:
https://github.com/openkm/document-mana ... eview.java
https://github.com/openkm/document-mana ... rvlet.java ( used a lot for preview )
https://github.com/openkm/document-mana ... rvlet.java
https://github.com/openkm/document-mana ... review.jsp
https://github.com/openkm/document-mana ... pp/preview

In case of professional version we have public preview service, but I think in community edition we have not implemented preview in the same manner and almost resources require authentication -> https://docs.openkm.com/kcenter/view/ok ... tions.html ( we do not have this kind of documentation in community edition, I'm quite sure it is not implemented in the same manner )

Post Reply