payload = [
["task[title]", "This is the title"],
["task[attachments][][file]", File.open("test.png")],
["task[attachments][][file]", File.open("test2.png")],
]
post("/tasks/new", :query => payload)
Inside HTTParty body fails to call query_string_normalizer at all if it's not dealing with a hash... so the files get "converted" to raw inspect strings (i.e., "#<File ...>") and passed over the wire as such - which of course isn't going to work.
Replacing the array with the equivalent hash solves the issue but since array is a supported way of passing params this should probably "just work" properly without users needing to change the class of the params.
Thoughts?
Inside HTTParty
bodyfails to callquery_string_normalizerat all if it's not dealing with a hash... so the files get "converted" to raw inspect strings (i.e., "#<File ...>") and passed over the wire as such - which of course isn't going to work.Replacing the array with the equivalent hash solves the issue but since array is a supported way of passing params this should probably "just work" properly without users needing to change the class of the params.
Thoughts?