Skip to main content
The First Step
October 5, 2019
Question

Send attachment in message .Net

Everyday I send message with attachment so ok. But today I get error about "unsupportted media type"

Please help me handle it.

3 replies

PhongVu
Community Manager
Community Manager
October 6, 2019

The error message said "unsupported media type". What type of media content was the attachment?

Here are those supported content types:

• Images: jpg/jpeg, png, gif, bmp, tif/tiff
• Videos: 3gp, mp4, mpeg, flv, wmv, mov
• Audio: mp3
• Files: vcf/vcard, zip, rtf, html

The First Step
October 8, 2019

Yes, I have followed above formats. Before It take place error, I still send image whose format is .jpg and it's successfull but when I create another app and install your library so it take error.

The First Step
November 4, 2019

png files should not be a problem as it is under allowed file type which means you can send png as attachment.

Pls make sure your file name is correct and don't contains special characters.

Also pls post the full stack trace for better visibility.