Skip to content

Instantly share code, notes, and snippets.

@max-mapper
Created March 27, 2019 00:43
Show Gist options
  • Save max-mapper/b758cf0fe6d353846ef9ce7d03fdca0c to your computer and use it in GitHub Desktop.
Save max-mapper/b758cf0fe6d353846ef9ce7d03fdca0c to your computer and use it in GitHub Desktop.
upload large file to zenodo from command line (curl)
# in zenodo ui create a deposition. get the id
curl -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" "https://www.zenodo.org/api/deposit/depositions/$DEPOSITION"
# get the bucket id from above
curl --progress-bar -o /dev/null --upload-file ./$FILE https://www.zenodo.org/api/files/$BUCKET/$FILE?access_token=$TOKEN
@jhpoelen
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment