talk icon indicating copy to clipboard operation
talk copied to clipboard

Sending pictures with Talk

Open visualight opened this issue 6 years ago • 2 comments

Hello,

I would like to know if there is a method to send an image via Chat Talk? A bit like Facebook allows? What should I do ... do you have a demo to suggest?

Thank you

visualight avatar Mar 30 '18 09:03 visualight

Hi @visualight oembed support was added today to dev-master. Follow these instructions for upload support:

  • require dev-master with composer
  • create your own upload routines to store the file
  • attach the file url to the message
  • create an oembed endpoint to return information and the html oembed block. Youtube oembed is a good example
  • enable oembed from the talk config file (You might need to republish talk config)
  • Print the message in your blade file using the method toHtmlString() {{$message->toHtmlString}}

And it should work

cfpinto avatar Nov 01 '18 11:11 cfpinto

Hi @cfpinto ! Hi @nahid !

I have a question because I can't quite understand the working principle of oembed. If I return a response from my server in json (oembed structure), will laravel talk integrate the file with a preview or will it simply display a clickable link? The idea is that people can download the file and save it locally on their computer. Can you tell me more about how oembed talk works?

It would be good to make a small video demo so that we can understand how the oembed works @nahid ;-)

Thanks

Thank you

visualight avatar Apr 19 '20 01:04 visualight