Fork me on GitHub
#clj-http
<
2023-03-28
>
fappy20:03:58

http-outgoing-2 >> "Content-Disposition: form-data; name="document"; filename="my.pdf"[\r][\n]"
http-outgoing-2 >> "Content-Type: application/octet-stream[\r][\n]"
I guess the question is how to get Content-Type to say application/pdf instead. I tried
{:name         "document" 
 :content      ( "my.pdf")
 :Content-Type "application/pdf"}
but that didn’t work.

fappy20:03:15

ooh I think this is how:

{:name      "document"
 :content   ( "my.pdf")
 :mime-type "application/pdf"}

👍 1