Sorry, you need to enable JavaScript to visit this website.

You are here

MMS multipart content not working

9 posts / 0 new
Last post

Dwain's picture
by Dwain

MMS multipart content not working
Hi, When sending an MMS with multiple content parts I'm finding that the last part is not coming through properly. If the last part is an image then the image appears broken on the handset. If the last part is text the content seems to be truncated. How exactly is the content meant to be encoded when POSTing to the /v2/messages/mms endpoint? I can't find in the documentation where this is explained. Thanks.

DeveloperSteve's picture
by DeveloperSteve

Hi Dev_4, 

Thanks for reaching out, some follow up questions....

Just to confirm the other images are arriving ok but the last one is not?

Have you tried switching the images around to see if the base64 is working ok otherwise?

Are you able to share an example of your code? 

Dwain's picture
by Dwain

It is consistently the last
It is consistently the last content item that is affected. I have tried switching the order of images and they all work as long as they aren't last. Below is a link to the JSON payload being sent to the API. In this example the image is coming through fine, but the text part is being truncated when viewed on the handset. https://pastebin.com/bs5rXJBP

DeveloperSteve's picture
by DeveloperSteve

Hi Dev_4

Appologies for the delay in response, 

See below for your body content that i sent from some sample code,

The 2nd one (below this is a subject line) has the 2nd array element attached for the text file to be created, that screenshot is taken from imessage on osx but i can see also from iOS and Android (using the default pixel rom) 

I can paste my full code if you want, what OS/Handsets did you send to?

Dwain's picture
by Dwain

It looks like you are getting
It looks like you are getting the same issue I am. The full text content being sent is "Why is it being chopped off? :S" but the handset only shows "Why is it being chop".

DeveloperSteve's picture
by DeveloperSteve

Hi Dev_4

Yup got it, interestingly if you put text first then the text and 1 picture appears.

Ill raise this with the team for further investigation 

DeveloperSteve's picture
by DeveloperSteve

Can you please give it another try

The messaging team thinks they have identified the issue 

Dwain's picture
by Dwain

No difference
Just tried it again. Still getting the same problem.

DeveloperSteve's picture
by DeveloperSteve

Hi Dev_4

Apologies it wasnt deploy to prod yet but is now, can you please give it another go 

Log in or register to post comments