Latest Legacy

The Media Object

The Media Object represents media in the system.

Attributes

content_type

The content type of the media.

Valid content types accepted: JPG, PNG, MP4, Gimp, PDF, text.

file_name

The name of the file that was uploaded to the system.

media_id

A unique identifier for the media for a given auth_id.

media_url

The location of the media resource on Plivo’s system.

Unused media have a time to live (TTL) of 6 hours. Uploaded media will be deleted from our system if it remains unused for sending an MMS message 6 hours from the time of upload. Used media is persisted forever.

media_size

Size of the media in bytes.

Media with size greater than 2MB are not accepted.

upload_time

Time at which the media was uploaded to Plivo’s system.