Skip to content

Instantly share code, notes, and snippets.

@creadone
Created January 24, 2020 20:59
Show Gist options
  • Save creadone/90adbca084fe3784f4f733c0558426b2 to your computer and use it in GitHub Desktop.
Save creadone/90adbca084fe3784f4f733c0558426b2 to your computer and use it in GitHub Desktop.
Curl :: upload file with token auth and params
curl -v -H 'Content-Type: multipart/form-data' -H 'Accept: application/json' -H 'authorization: Token 1234' -F 'documents=@./upload.txt' -F "description=bla bla" http://0.0.0.0:8080/api/v1/upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment