Skip to content

Commit 77ce90a

Browse files
DX-2809 fixed upload media content Type
1 parent 75a6ea5 commit 77ce90a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ApiTest.php

Lines changed: 2 additions & 1 deletion
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)