Display an image in a RG if file type is image

Hello!

I am building a collaboration tool which includes a chat. Chat conversations contain individual messages. I added a function to upload a file in a chat conversation, using the File Uploader. If a user uploads a file, the chat will display a link to open the file in the browser.
Now I also want to include an option to upload an image. If the image is uploaded, the user should see the image directly in the chat (instead of a link). I know I could use the Picture Uploader and then display that image, but I want to avoid having two seperate upload buttons (one for files and one for images).

Can this be achieved using only one Uploader?

Hello @sampannemans welcome back to the forum!

The file uploader also works for images.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.