Skip to main content
Upload a file to a channel. The file ID can be attached to a post using the Create Post In Channel action. Required Permissions: upload_file.
External DocumentationTo learn more, visit the Mattermost documentation.

Parameters

ParameterDescription
Channel IDThe ID of the channel to upload the file to.
Client IDsThe ID for the file that will be returned in the response.
File IdentifiersA comma-separated list of file identifiers.

Example Output

{
	"file_infos": [
		{
			"id": "string",
			"user_id": "string",
			"post_id": "string",
			"create_at": 0,
			"update_at": 0,
			"delete_at": 0,
			"name": "string",
			"extension": "string",
			"size": 0,
			"mime_type": "string",
			"width": 0,
			"height": 0,
			"has_preview_image": true
		}
	],
	"client_ids": [
		"string"
	]
}

Workflow Library Example

Upload File with Mattermost and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop