You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see all the details about the file, but you cannot download it. Please add a Download button/link on these pages. The link should not be tab specific. So it can go on the right like this:
The link should be done as a download link, eg: <a href="myfile.pdf" download>Click to Download</a> (though still shown using the same download icon we normally see).
There is one additional note for the download link. I think this only works for same-origin requests. To assist, I am planning to proxy the file service in to the net.science domain(s) for these requests only (the rest of the SciDuct requests should go to the normal sciduct urls).
I have added a proxy url for the file service that can be used for these download urls. it is simply /_fs/ -> https://sciduct.bii.virginia.edu/fs/. So for downloading a url like https://net.science/_fs/file/735a74f9-8a92-47d7-a5f3-d06548bf6332?http_accept=application/octet-stream&http_authorization=<TOKEN> should work. Remember to exclude the http_authorization when the user isn't logged in. Here is a curl example:
Currently you can only download a file from the file browser. If you click on the link to one of the files, for example:
https://ptest.net.science/files/179833f8-057e-4a2f-a874-a211438bea71/US_states_hockey_stick_grid_hosp_all_states_10_weeks.png
You can see all the details about the file, but you cannot download it. Please add a Download button/link on these pages. The link should not be tab specific. So it can go on the right like this:
The link should be done as a download link, eg:
<a href="myfile.pdf" download>Click to Download</a>
(though still shown using the same download icon we normally see).There is one additional note for the download link. I think this only works for same-origin requests. To assist, I am planning to proxy the file service in to the net.science domain(s) for these requests only (the rest of the SciDuct requests should go to the normal sciduct urls).
Replaces ticket #276
The text was updated successfully, but these errors were encountered: