Jump to content

Sharing Data with Outside Parties: Difference between revisions

From HPCwiki
Created page with "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"
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To facilitate data sharing with outside parties, we have a service for that running at https://public.anunna.wur.nl/
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
 
As we do not want the public datasets to be available for crawling, we have used [https://filebrowserquantum.com/ FileBrowser Quantum] to limit access.
 
The setup consists of a folder (<code>/shared/www-public</code>) 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:
[[File:Main filebrowser screen.png|none|thumb|500x500px]]
 
 
After going into a folder, and right-click on a file you get this:
[[File:Right click file.png|none|thumb|500x500px]]
 
 
Then click on Share, and then you get this:
[[File:Share.png|none|thumb|500x500px]]
 
 
Enter a duration, and click share:
[[File:Shared.png|none|thumb|400x400px]]
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. <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.

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.