clj-http

2023-03-28T20:33:58.262459Z

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.

2023-03-28T20:48:15.247049Z

ooh I think this is how:

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

👍 1