From de651ca7698bc2cd088e1cf7c4b2413b67597291 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 9 Sep 2022 12:35:17 +0100 Subject: [PATCH] Update curl readme command --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34378be..5639de5 100644 --- a/README.md +++ b/README.md @@ -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" ```