Skip to content

Commit

Permalink
Merge pull request #58 from Bandwidth/DX-2809
Browse files Browse the repository at this point in the history
DX-2809 fixed upload media content Type
  • Loading branch information
ajrice6713 authored Aug 30, 2022
2 parents 75a6ea5 + 9119be3 commit a92620f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ public function testUploadDownloadMedia() {
//constants
$mediaId = "text-media-id-" . uniqid();
$content = "Hello world";
$contentType = 'text/plain';

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

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

0 comments on commit a92620f

Please sign in to comment.