Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1.     attachemnts = params["attachments"]
  2.     post_data = HTTParty.post(ENV["baseUrl"] + "attachment",
  3.                               multipart: true
  4.                               body: attachemnts,
  5.                               headers: req_headers,
  6.                               debug_output: $stdout)
  7.     render plain: response.body, status: response.code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement