From cbdfd826a68f5f51f366e791321b8d23f372bc99 Mon Sep 17 00:00:00 2001 From: eshangupta-plivo Date: Wed, 6 Aug 2025 11:45:15 +0530 Subject: [PATCH] update-supported-media --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/plivo/resources/media.rb | 15 +++++++++++++-- lib/plivo/version.rb | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ad2653f..81b1aeb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.62.1](https://github.com/plivo/plivo-ruby/tree/v4.62.1) (2025-08-06) +**Feature - Expanded Media Type Support for Media Upload** +- Added support for additional media file formats: GIF, MP3, WAV, OGG, 3GPP, 3GPP2, VCARD, CSV, XLS, XLSX, and PLAIN text files + ## [4.62.0](https://github.com/plivo/plivo-ruby/tree/v4.62.0) (2025-04-30) **Feature - New Param added for Start Recording API.** - Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML. diff --git a/README.md b/README.md index 30a3b50e..9729aae4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a Add this line to your application's Gemfile: ```ruby -gem 'plivo', '>= 4.62.0' +gem 'plivo', '>= 4.62.1' ``` And then execute: diff --git a/lib/plivo/resources/media.rb b/lib/plivo/resources/media.rb index 62cfdffd..aa600a01 100644 --- a/lib/plivo/resources/media.rb +++ b/lib/plivo/resources/media.rb @@ -79,11 +79,22 @@ def upload(filepath) when 'jpeg' then 'image/jpeg' when 'jpg' then 'image/jpeg' when 'png' then 'image/png' + when 'gif' then 'image/gif' + when 'mp3' then 'audio/mp3' + when 'mp4' then 'video/mp4' + when 'mpeg' then 'video/mpeg' + when 'wav' then 'audio/wav' + when 'ogg' then 'audio/ogg' + when '3gpp' then 'video/3gpp' + when '3gpp2' then 'video/3gpp2' + when 'vcard' then 'text/vcard' + when 'csv' then 'text/csv' when 'pdf' then 'application/pdf' + when 'xls' then 'application/vnd.ms-excel' + when 'xlsx' then 'application/vnd.ms-excel' when 'xcf' then 'image/xcf' when 'text' then 'text/plain' - when 'mpeg' then 'video/mpeg' - when 'mp4' then 'video/mp4' + when 'plain' then 'text/plain' else raise_invalid_request("#{file_extension} is not yet supported for upload") end diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 135abb8a..08243466 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.62.0".freeze + VERSION = "4.62.1".freeze end