Closed ptsefton closed 3 years ago
Hello Peter,
Inside your curl request you need an @
before your file path.
curl -F 'presqt-file=@sample/sample-crate.zip' -H "presqt-destination-token: XXXXXXXX" -H "presqt-file-duplicate-action: update" -H "Accept: application/json" http://127.0.0.1:8000/api_v1/targets/zenodo/resources/ -v
Also, I've updated the code to no longer require a presqt-email-opt-in
in the headers. This is something specific to our servers and was never fully documented. If you just pull the latest that will all be taken care of.
I am trying to use the Docker environment to do an upload to Zenodo.
I tried this:
curl -F 'presqt-file=sample/sample-crate.zip' -H "presqt-destination-token: XXXXXXXX" -H "presqt-file-duplicate-action: update" -H "Accept: application/json" http://127.0.0.1:8000/api_v1/targets/zenodo/resources/ -v
But I am getting an error asking for a
presqt-source-token
- which I think should not need as I am trying an upload not a transfer.