question

justin-nguyen11499 avatar image
justin-nguyen11499 asked Anirban answered

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.

rest api
1570263418892.png (54.3 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered Phong Vu edited

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

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

justin-nguyen11499 avatar image
justin-nguyen11499 answered justin-nguyen11499 commented

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.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

justin-nguyen11499 avatar image justin-nguyen11499 commented ·

I find problem. It work when I send .png but when I send .jpg then it takes place above error.

0 Likes 0 ·
Anirban avatar image
Anirban answered

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.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys