Skip to content

Commit

Permalink
Merge pull request #27 from cp6/dev
Browse files Browse the repository at this point in the history
Fixed video stream upload files not working
  • Loading branch information
cp6 committed Oct 11, 2023
2 parents 14405fa + de03480 commit 4b8293d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BunnyAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ protected function APIcall(string $method, string $url, array $params = [], stri
} else {//Video stream
curl_setopt($curl, CURLOPT_URL, self::VIDEO_STREAM_URL . $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("AccessKey: " . self::STREAM_LIBRARY_ACCESS_KEY, "Content-Type: application/*+json"));
curl_setopt($curl, CURLOPT_POSTFIELDS, file_get_contents($params['file']));
}

curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Expand Down

0 comments on commit 4b8293d

Please sign in to comment.