Update curl readme command

This commit is contained in:
Kieran 2022-09-09 12:35:17 +01:00
parent 408697accb
commit de651ca769
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -25,8 +25,12 @@ or paste your screenshots or files into the browser window.
From cli you can upload with `curl`:
```bash
export FILE=memes.jpg
curl -X POST \
--data-binary @spicy_memes.jpg \
-H "V-Content-Type: $(file --mime-type -b $FILE)" \
-H "V-Full-Digest: $(sha256sum -bz $FILE | cut -d' ' -f1)" \
-H "V-Filename: $FILE" \
--data-binary @$FILE \
"https://void.cat/upload?cli=true"
```