Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 13 additions & 2 deletions lib/plivo/resources/media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/plivo/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Plivo
VERSION = "4.62.0".freeze
VERSION = "4.62.1".freeze
end