Upload Upload
Upload Certified

Upload a file to Slack

yaml
type: "io.kestra.plugin.slack.app.files.Upload"
yaml
id: slack_file_upload
namespace: company.team

tasks:
  - id: upload_file
    type: io.kestra.plugin.slack.app.files.Upload
    token: "{{ secret('SLACK_TOKEN') }}"
    channels: ["#general"]
    from: "{{ outputs.previous_task.uri }}"
    filename: "report.pdf"
    title: "Monthly Report"

yaml
id: slack_file_upload_detailed
namespace: company.team

tasks:
  - id: upload_file
    type: io.kestra.plugin.slack.app.files.Upload
    token: "{{ secret('SLACK_TOKEN') }}"
    channels: ["#general", "#reports"]
    from: "{{ inputs.file }}"
    filename: "analysis.png"
    title: "Data Analysis Chart"
    altTxt: "Chart showing sales trends over the last quarter"

yaml
id: slack_file_thread_upload
namespace: company.team

tasks:
  - id: upload_file
    type: io.kestra.plugin.slack.app.files.Upload
    token: "{{ secret('SLACK_TOKEN') }}"
    channels: ["#general"]
    from: "{{ outputs.generate_report.uri }}"
    filename: "detailed_report.pdf"
    title: "Detailed Report"
    timestamp: "{{ outputs.send_message.timestamp }}"
Properties
SubTypestring