Loading...
 
Resource Download

How to configure the "Download Manager"

Java

Checkout Java Information as it is required for the B-Fabric Download Manager.

How to download a resource

On the show resource screen as well as in the resource listings you can find the download-related icons next to resource status:
(1) Downloads using the B-Fabric Download Manager (a Java Application)
(2) Downloads via the Web browser
(3) Opens this "Resource Download" section of the user manual in a separate tab of the Web browser.

Image

Download via the Web browser

If you have no Java installed on your local machine, e.g., due to missing admin rights, there is the (less reliable) HTTP Download alternative via the Web browser. Clicking on the icon (2) initiates the download via the Web-Browser. A window pops up and asks you to approve the download by clicking on "Okay". This is a limitation of the security concept of todays Web browser and cannot be disabled. When the download is finished, the file can be reached by clicking on the icon on the bottom left of the screen:
Image

When you click on the icon next to the file, you can see the folder where the file was downloaded. By default, it is the "Downloads" folder of your computer.
How to change the download directory is described in section Configure Download Directory.
Image

Download using the B-Fabric Download Manager (a Java Application)

When you click on the Download icon (1), a download starter file, which ends with jnlp (Java Network Launching Protocol) and contains the entire download information, is downloaded. Nowadays, with the increased security settings of the todays Web browsers, this jnlp file must be explicitly started. After launching the jnlp file, a warning message will be prompted by Java Web Start for security reasons and you have to explicitly agree that you want to run this application. Extra information for Apple User about Security Settings.

  • After clicking the "Download " icon (1), click on "Keep" that appears on the bottom left of the screen for the jnlp file to be downloaded:
Image

  • You can see the downloaded jnlp file on the left bottom of the screen, after it is downloaded:
Image

  • This file is downloaded under "Downloads" folder of your computer and you can check it by clicking the icon on the right side of the file and selecting "Show in folder location":
Image

  • When you click on this jnlp file, it pops up a security warning asking whether you trust the content. Here you select "Always trust content from this publisher" so that next time this security check will be skipped. Then, click "Yes":
Image

  • When the download manager gets started, before it can begin to download, there is another security pop up asking whether you trust the content. Here you select "Always trust content from this publisher" so that next time this security check will be skipped. Then, click "Yes" and the download will start:
Image

  • Download Manager is downloading the resource. You can stop the download by clicking the button in the "Action" column:
Image

  • After stopping the download, the Download Manager screen looks like as below. You can resume the download by clicking the play button in the same column, "Action":
Image

  • When you click the path link (C:\Users\..) under the "Download Directory" column, you will see the folder location where the resource is being downloaded:
Image

  • You can also stop the download by clicking the close button (X) on the top right of the "Download Manager" screen. When you click, a pop up will appear asking your confirmation about closing the "Download Manager":
Image

  • When you click the "Close" button, the folder location where the resource was partly downloaded will appear:
Image

  • After closing the "Download Manager", if you click icon(1) to download with B-Fabric Download Manager on the same resource's page, it pops up a screen asking whether you want to resume the previously stopped download or to start a new one from scratch:
Image

  • When you click "Resume", it continues the download from where it has stopped:
Image

  • When you click "Restart", it starts a new download for the same resource:
Image

  • Alternatively, the jnlp file can also be used to resume the download in case it was stopped:
Image

  • When the download is completed, you see 100% with green color in the background in the "Done" column:
Image

  • When you click the "Close" button, the folder location where the resource was downloaded will appear:
Image

Direct download with a command-line tool

  • All files that can be download with the B-Fabric DownloadManager can also be accessed with a command-line tool.
  • Authentication and authorization are based on a cookie.
  • The cookie can be fetched by login to the FGCZ Single-Sign-On page.
  • The cookie is only valid for one project and expires after 24 hours.
  • As the cookie is the key to your data, keep it as secret as you want your data.
  • The URL to your data is not the one of the HTTP Download. HTTP Download has its own authentication.
    • You can find the links in the jnlp-file you get by pressing the Download button in B-Fabric.
    • Usually it is the URL of the HTTP Download, by adding /dm/ after the hostname.

curl

In the examples below, use your username and projectid. You will be asked for the password. See manual of curl for details.
  1. get the cookie from FGCZ Single-Sign-On
    $ curl -c cookie -u username 'https://fgcz-sso.uzh.ch/?project=projectid'
  2. use the cookie to get the data:
    $ curl -b cookie "https://fgcz-gstore.uzh.ch/dm/p123/..."

wget

Unfortunately it is not possible to get the cookie via wget. But the cookie from curl works with wget.
$ wget --load-cookie cookie "https://fgcz-gstore.uzh.ch/dm/p123/..."




Created by uguerel. Last Modification: Wednesday September 27, 2023 10:02:00 CEST by schmidt.