clj-http

2024-10-18T01:40:54.525389Z

Hi 🙂 How do I express the last line when doing the equivalent in clj-http?

curl --location '' \
--header 'Authorization: Bearer redacted'           \
--header 'Content-Type: application/json'           \
--form 'upload=@"/Users/me/file.txt"' <--------------
I tried the following
:form-params {:upload "/Users/me/file.txt"}
and
:multipart
[{:name "upload"
  :file (io/file "/Users/me/file.txt")}]
and
:multipart
[{:name    "upload"
  :content (io/file "/Users/me/file.txt")}]

2024-10-18T02:57:40.350879Z

never mind, the last one worked after I fixed the real problem which was in my header