Trimble Connect User Forum

 View Only

 API |Download File via URL

Pascal Christen's profile image
Pascal Christen posted 02-25-2021 06:23
Hello

I have a question about the function 'Download File via URL'

(Link to the doc)
https://app.connect.trimble.com/tc/static/apidoc.html#files-download-file-via-url-get

Only the existing file version can be accessed. Is it possible to create a download link that always downloads the latest version?
As with the 'share' function?

(Link to the doc)
https://app.connect.trimble.com/tc/static/apidoc.html#shares-share-creation-post

The problem with the function is that it doesn't download the file directly, just displays it in the web browser.

Is there a solution for this?

Greetings
Pascal
Veni Lillkåll's profile image
Veni Lillkåll

Hi Pascal,

Currently, there's no way to get a permanent download url to a file. The download urls provided by the API mentioned are preauthorized, user-specific and have a limited lifetime - so they can not be shared.
The shares are always first launched in the browser, as they may require user authentication.

Just curious, what is the exact use case you're trying to implement?

Thanks,

     Veni