Skip to content

Commit f29d88e

Browse files
Merge pull request #298 from plivo/update-supported-media
update-supported-media
2 parents 71d5607 + 9194270 commit f29d88e

File tree

7 files changed

+54
-8
lines changed

7 files changed

+54
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Change Log
2+
3+
## [5.51.1](https://github.com/plivo/plivo-dotnet/tree/v5.51.1) (2025-08-06)
4+
**Feature - Expanded Media Type Support for Media Upload**
5+
- Added support for additional media file formats: GIF, MP3, WAV, OGG, 3GPP, 3GPP2, VCARD, CSV, XLS, XLSX, and PLAIN text files
26
## [5.51.0](https://github.com/plivo/plivo-dotnet/tree/v5.51.0) (2025-04-30)
37
**Feature - New Param added for Start Recording API.**
48
- Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet.
1212
Use the following line to install the latest SDK using the NuGet CLI.
1313

1414
```
15-
PM> Install-Package Plivo -Version 5.51.0
15+
PM> Install-Package Plivo -Version 5.51.1
1616
```
1717

1818
You can also use the .NET CLI to install this package as follows
1919

2020
```
21-
> dotnet add package Plivo --version 5.51.0
21+
> dotnet add package Plivo --version 5.51.1
2222
```
2323

2424
## Getting started

src/Plivo/Client/SystemHttpClient.cs

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,57 @@ public HttpRequestMessage NewRequestFunc(string method, string uri, Dictionary<s
194194
case "jpg":
195195
fileHeader = "image/jpeg";
196196
break;
197+
case "jpeg":
198+
fileHeader = "image/jpeg";
199+
break;
197200
case "png":
198201
fileHeader = "image/png";
199202
break;
200-
case "jpeg":
201-
fileHeader = "image/jpeg";
203+
case "gif":
204+
fileHeader = "image/gif";
205+
break;
206+
case "mp3":
207+
fileHeader = "audio/mp3";
208+
break;
209+
case "mp4":
210+
fileHeader = "video/mp4";
211+
break;
212+
case "mpeg":
213+
fileHeader = "audio/mpeg";
214+
break;
215+
case "wav":
216+
fileHeader = "audio/wav";
217+
break;
218+
case "ogg":
219+
fileHeader = "audio/ogg";
220+
break;
221+
case "3gpp":
222+
fileHeader = "video/3gpp";
223+
break;
224+
case "3gpp2":
225+
fileHeader = "video/3gpp2";
226+
break;
227+
case "vcard":
228+
fileHeader = "text/vcard";
229+
break;
230+
case "csv":
231+
fileHeader = "text/csv";
202232
break;
203233
case "pdf":
204234
fileHeader = "application/pdf";
205235
break;
236+
case "xls":
237+
fileHeader = "application/vnd.ms-excel";
238+
break;
239+
case "xlsx":
240+
fileHeader = "application/vnd.ms-excel";
241+
break;
242+
case "xcf":
243+
fileHeader = "image/xcf";
244+
break;
245+
case "plain":
246+
fileHeader = "text/plain";
247+
break;
206248
}
207249

208250
fileContents.Headers.Add("Content-Type", fileHeader);

src/Plivo/Plivo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
4-
<ReleaseVersion>5.51.0</ReleaseVersion>
4+
<ReleaseVersion>5.51.1</ReleaseVersion>
55
<Version />
66
<Authors>Plivo SDKs Team</Authors>
77
<Owners>Plivo Inc.</Owners>

src/Plivo/Plivo.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<summary>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</summary>
55
<description>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</description>
66
<id>Plivo</id>
7-
<version>5.51.0</version>
7+
<version>5.51.1</version>
88
<title>Plivo</title>
99
<authors>Plivo SDKs Team</authors>
1010
<owners>Plivo, Inc.</owners>

src/Plivo/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Version
1010
/// <summary>
1111
/// DotNet SDK version
1212
/// </summary>
13-
public const string SdkVersion = "5.51.0";
13+
public const string SdkVersion = "5.51.1";
1414
/// <summary>
1515
/// Plivo API version
1616
/// </summary>

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.51.0",
2+
"version": "5.51.1",
33
"publicReleaseRefSpec": [
44
"^refs/heads/master$",
55
"^refs/heads/v\\d+(?:\\.\\d+)?$"

0 commit comments

Comments
 (0)