From 808295918c7291cdffc96d9d794c90f64d5c218b Mon Sep 17 00:00:00 2001 From: Nanjiang Shu Date: Tue, 14 Nov 2023 14:24:57 +0100 Subject: [PATCH] remove unused html code and also overcomplicated tech description --- submission/submission-guide.qmd | 50 --------------------------------- 1 file changed, 50 deletions(-) diff --git a/submission/submission-guide.qmd b/submission/submission-guide.qmd index 8843d4e..f82e342 100644 --- a/submission/submission-guide.qmd +++ b/submission/submission-guide.qmd @@ -158,62 +158,12 @@ curl -OL https://raw.githubusercontent.com/NBISweden/EGA-SE-user-docs/main/crypt Once your files are encrypted, you are ready to start uploading them. -```{=html} - -``` -```{ojs} -//| echo: false -//| output: true -params = new URLSearchParams(document.location.href.split('?')[1]) - -formatConf = (data) => { - let conf = "" - for (const key in data) { - conf += `${key} = ${data[key]}\n` - } - return conf -} - -checkLogin = () => { - if (params.has("code") && params.has("state")) { - fetch(`{{< env LOGIN_URL >}}/cors_login?${params.toString()}`, {credentials: 'include'}) - .then(data => data.json()) - .then(r => { - let s3conf = formatConf(r["S3Conf"]) - - let element = document.createElement('a') - element.setAttribute('href', 'data:text/plain;charset=utf-8,' + - encodeURIComponent(s3conf)) - element.setAttribute('download', 's3cmd.conf') - element.innerHTML = "download s3conf" - element.click() - }) - } -} -checkLogin(); -``` - 1. Obtain the configuration file The `sda-cli` tool requires a configuration file with the relevant settings. You can get the configuration file by [logging in to our service](%7B%7B%3C%20env%20FULL_LOGIN_URI%20%3E%7D%7D). - ::: callout-note - The `sda-cli` tool builds on the s3 technology for storing data. If - you choose to not use the provided configuration file, we recommend - setting the multipart chunk size significantly higher than the - default 5 Mbyte. It can be set up to 2 Gbytes but values above - 100 Mbyte will probably have only little effect on the throughput. - The following section requires the usage of `[username]` when - uploading files. The username refers to the value of the - `secret_key` in the downloaded configuration file. Make sure to get - it from the configuration file and use it every time the `sda-cli` - command is issued. - ::: - 2. Upload the files Files can be uploaded with or without folders. Files can be uploaded