Absolute url to the document for downloading by a browser after opening it in a new tab

Anything concerning integration via the REST API
Post Reply
girum
Posts: 1
Joined: Tue Jul 21, 2020 7:02 am

Absolute url to the document for downloading by a browser after opening it in a new tab

Post by girum »

Hello all,
We are using mayan for our document repository, with another web app accessing it from front end through DRF.
I have a requirement to provide a url to the actual document to download in rest api by a browser but not automatically download like the download_url from rest_api:documentversion-download
Can we get some form of absolute url to the document for downloading by a browser after opening it in a new tab and the user can preview it?


Thanks in advance,
Girum

Post Reply