How Can We Help?
How Can I Download Files from the Web-ServiceHow Can I Download Files from the Web-Service
What
Clients ask if it is possible to download attached files or electronic versions or profile photos or CVs from the web service in Pure.
How
- Yes this is possible, files can be found on the related content in the web service, so if you fetch the data for the content (Research output) that the file is uploaded with, you will get a URL to the attached files.
- Then the file can be downloaded from Pure, normally from something like https://server.name/ws/files/.....
- Here is an example of how the data will look in the API response:
<profilePhotos>
<profilePhoto typeUri="/dk/atira/pure/person/personfiles/portrait" type="Portrait" url="https://server.name/ws/files/1953871/photo.jpg" filename="Photo.jpg" mimetype="image/jpeg" size="0" pureId="1953871"/
</profilePhotos> - And then they have to fetch the file with the file link in the URL location.
- Here is an example of how the data will look in the API response:
Note that if the customer chooses to download the files, rather than just use the link in their HTML, then they need to make sure they get the files updated once/if there are changes in Pure, so in general we recommend to just keep the file in Pure, and then link to in the HTML they create.
More information
Note: Some of this information is for internal use only and might not be accessible.
Updated at July 27, 2024