Skip to content

Commit a92620f

Browse files
authored
Merge pull request #58 from Bandwidth/DX-2809
DX-2809 fixed upload media content Type
2 parents 75a6ea5 + 9119be3 commit a92620f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ApiTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ public function testUploadDownloadMedia() {
6262
//constants
6363
$mediaId = "text-media-id-" . uniqid();
6464
$content = "Hello world";
65+
$contentType = 'text/plain';
6566

6667
//media upload
67-
$this->bandwidthClient->getMessaging()->getClient()->uploadMedia(getenv("BW_ACCOUNT_ID"), $mediaId, $content);
68+
$this->bandwidthClient->getMessaging()->getClient()->uploadMedia(getenv("BW_ACCOUNT_ID"), $mediaId, $content, $contentType);
6869

6970
//media download
7071
$downloadedContent = $this->bandwidthClient->getMessaging()->getClient()->getMedia(getenv("BW_ACCOUNT_ID"), $mediaId)->getResult();

0 commit comments

Comments
 (0)