Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attachemnts = params["attachments"]
- post_data = HTTParty.post(ENV["baseUrl"] + "attachment",
- multipart: true
- body: attachemnts,
- headers: req_headers,
- debug_output: $stdout)
- render plain: response.body, status: response.code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement