class HTTParty::Request::Body

def file_name(object)

def file_name(object)
  object.respond_to?(:original_filename) ? object.original_filename : File.basename(object.path)
end