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):

  • :channels (Object)

    Comma-separated list of channel names or IDs where the file will be shared.

  • :content (Object)

    File contents via a POST variable. If omitting this parameter, you must provide a file.

  • :file (Object)

    File contents via multipart/form-data. If omitting this parameter, you must submit content.

  • :filename (Object)

    Filename of file.

  • :filetype (Object)

    A file type identifier.

  • :initial_comment (Object)

    Initial comment to add to file.

  • :title (Object)

    Title of file.

See Also:



182
183
184
# File 'lib/slack/endpoint/files.rb', line 182

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