Method: Slack::Endpoint::Files#files_upload

Defined in:
lib/slack/endpoint/files.rb

#files_upload(options = {}) ⇒ Object

Uploads or creates a file.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :file (Object)

    File contents via multipart/form-data.

  • :content (Object)

    File contents via a POST var.

  • :filetype (Object)

    Slack-internal file type identifier.

  • :filename (Object)

    Filename of file.

  • :title (Object)

    Title of file.

  • :initial_comment (Object)

    Initial comment to add to file.

  • :channels (channel)

    Comma separated list of channels to share the file into.

See Also:



67
68
69
# File 'lib/slack/endpoint/files.rb', line 67

def files_upload(options={})
  post("files.upload", options)
end