airborne icon indicating copy to clipboard operation
airborne copied to clipboard

How would you send a file over post?

Open pedroadame opened this issue 9 years ago • 1 comments

Given the following JSON body I must match:

msg: {
  body: "test",
  attachments: [att1, att2...]
}

And headers: {'Content-Type' => 'multipart/form-data'}

How do I have to write my code to send attachments? Tried f1 = File.open(dir) and putting f1 into attachments: doesn't work.

pedroadame avatar Apr 21 '16 07:04 pedroadame

@pedroadame posted an answer over here:

https://github.com/brooklynDev/airborne/issues/84

templeman15 avatar Dec 19 '17 21:12 templeman15