class HTTParty::Request::Body

def has_file?(value)

def has_file?(value)
  if value.respond_to?(:to_hash)
    value.to_hash.any? { |_, v| has_file?(v) }
  elsif value.respond_to?(:to_ary)
    value.to_ary.any? { |v| has_file?(v) }
  else
    file?(value)
  end
end