How do I check attachment file is supported content type How do I check attachment file is supported content type

How do I check attachment file is supported content type

Vonage API Support

Question

How to determine if the attachment is a properly supported content type when sending MMS messages through the Messages API but returns 1382 failures despite verifying that file sizes don't exceed carrier limits?

Applies To

  • MMS
  • Messages API
  • File Type

Answer

Run the shell command below to ensure the content-type is one of the MIME-TYPE listed.
curl -I https://samples-files.com/samples/Audio/mp3/sample-file-4.mp3
HTTP/2 200
date: Mon, 11 Dec 2023 13:01:56 GMT
content-type: audio/mpeg
  • "audio/amr"
  • "audio/midi"
  • "audio/wav"
  • "audio/ac3"
  • "audio/mp3"