Created
March 27, 2019 00:43
-
-
Save max-mapper/b758cf0fe6d353846ef9ce7d03fdca0c to your computer and use it in GitHub Desktop.
upload large file to zenodo from command line (curl)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice! super helpful.
I added: