Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you send a file over post? #96

Open
pedroadame opened this issue Apr 21, 2016 · 1 comment
Open

How would you send a file over post? #96

pedroadame opened this issue Apr 21, 2016 · 1 comment

Comments

@pedroadame
Copy link

pedroadame commented Apr 21, 2016

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.

@templeman15
Copy link

@pedroadame posted an answer over here:

#84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants