Sharing Data with Outside Parties: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
The second link (with the arrow) gives a link for direct download, so that e.g. <code>wget</code> works. | The second link (with the arrow) gives a link for direct download, so that e.g. <code>wget</code> works. | ||
Sharing folders is the same, but then select a folder instead of a file. | |||
== How to download data with a link == | |||
If someone has sent you a link for direct download (with <code>api</code> in the text), use this to get the data, with the correct filename:<syntaxhighlight lang="shell"> | |||
wget --content-disposition 'https://public.anunna.wur.nl/public/api/resources/download?hash=t6v_iS0O7FexdAWFpyzf-g' | |||
</syntaxhighlight>The <code>--content-disposition</code> will help <code>wget</code> to use the correct name for storing the file. | |||
Take care to use single quotes around the URL, otherwise it won't work. | |||
Latest revision as of 11:17, 17 November 2026
To facilitate data sharing with outside parties, we have a service for that running at https://public.anunna.wur.nl/
As we do not want the public datasets to be available for crawling, we have used FileBrowser Quantum to limit access.
The setup consists of a folder (/shared/www-public) and the application that allows you to share the data.
How to share data with others?
To be able to share data, first ask for a group/team folder in the share folder through a ticket.
Then place the data you want to share in the folder, taking care that it is readable by everyone, otherwise the server can't access the data and deliver it to outside people.
After logging in, you will be greeted with a screen like this:

After going into a folder, and right-click on a file you get this:

Then click on Share, and then you get this:

Enter a duration, and click share:

You have now shared a file.
But as that in itself isn't very useful, there are two clipboard buttons in the panel.
The first is a link you can share so that a person can open the Filebrowser website and retrieve the data that way.
The second link (with the arrow) gives a link for direct download, so that e.g. wget works.
Sharing folders is the same, but then select a folder instead of a file.
How to download data with a link
If someone has sent you a link for direct download (with api in the text), use this to get the data, with the correct filename:
wget --content-disposition 'https://public.anunna.wur.nl/public/api/resources/download?hash=t6v_iS0O7FexdAWFpyzf-g'
The --content-disposition will help wget to use the correct name for storing the file.
Take care to use single quotes around the URL, otherwise it won't work.