provider files POST /files.upload
@utdk/slack /files.upload
files_upload
Uploads or creates a file.

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

filesUpload
POST/files.upload
Uploads or creates a file.

Input

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

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

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

Filename of file.

A [file type](/types/file#file_types) identifier.

The message text introducing the file in specified `channels`.

Provide another message's `ts` value to upload this file as a reply. Never use a reply's `ts` value; use its parent instead.

Title of file.

Authentication token. Requires scope: `files:write:user`

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.filesUpload()