-1

I am sending an attachment in laravel slack notification. Attachment is sent as a link. I want to download the file sent as an attachment, there is no option for download.enter image description here

Chaitali
  • 3
  • 5
  • 1
    Can you post you current notification code? – Petyo Tsonev Sep 04 '20 at 12:20
  • $url = url(storage_path('\app\error_log\test.txt')); return (new SlackMessage) ->from('Import Application Batch', ':application batch:') ->to($this->slackChannelName) ->content($this->batchNotification) ->attachment(function ($attachment) use ($url) { $attachment->title('Application Batch Error Log', $url); }); – Chaitali Sep 07 '20 at 05:43

1 Answers1

1

It is not possible to upload a file through slack incoming webhook. You can check more here https://stackoverflow.com/a/36287627/5152147

Petyo Tsonev
  • 556
  • 5
  • 18