Upload File
Slack
Slack
Upload File
Uploads and optionally shares files in one Slack channel using Slack's external upload flow.
Action
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
files | files | Required | Files to upload. Each file should include base64 content and a filename. |
channel_id | text | Optional | The ID of a single channel where Slack should share the uploaded file. Leave empty to keep the upload private. |
initial_comment | text | Optional | Message text to send together with the uploaded files. If provided, Slack ignores blocks. |
blocks | array of object | Optional | Block Kit blocks to share with the uploaded files when initial_comment is not provided. Same raw Block Kit structure as Send Message. |
thread_ts | text | Optional | Provide a parent message ts to share the uploaded files as a thread reply (requires channel_id). |
Outputs
| Name | Type | Description |
|---|---|---|
ok | yes/no | Indicates whether the Slack upload request succeeded. |
files | array of object | File metadata returned by Slack after the upload is completed. |
id | text | Slack file identifier. |
title | text | Slack file title. |
mimeType | text | MIME type of the uploaded file. |
size | number | Size of the uploaded file in bytes. |
url_private | text | Private Slack URL for the uploaded file. |
permalink | text | Slack permalink for the uploaded file. |
channel_id | text | The single channel ID used when the upload was shared to one channel. |
thread_ts | text | The thread timestamp used for the upload, when provided. |
error | text | Slack error code or upload failure summary when ok is false. |
failure | text | Human-readable failure message when upload fails. |
failureReason | text | Machine-readable failure reason or Slack error code. |
response_metadata | object | Slack response metadata, including partial upload failure details (warnings, messages, next_cursor, fileUploadFailures). |
tenantIntegrationId | text | The Slack connection that executed this upload. |