0

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

Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289
Chaitali
  • 13
  • 7
  • 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
  • Does this answer your question? [Is it possible to post files to Slack using the incoming Webhook?](https://stackoverflow.com/questions/35742775/is-it-possible-to-post-files-to-slack-using-the-incoming-webhook) – Chuck Le Butt Jun 22 '22 at 14:11

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
  • 567
  • 2
  • 6
  • 19