Skip to content

Commit a9d8b29

Browse files
"Updating samples to reflect recent changes."
1 parent 742d864 commit a9d8b29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

php/upload_banner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
// Read the media file and upload it chunk by chunk.
8989
$status = false;
90-
$handle = fopen($imagePath, "rb");
90+
$handle = fopen($videoPath, "rb");
9191
while (!$status && !feof($handle)) {
9292
$chunk = fread($handle, $chunkSizeBytes);
9393
$status = $media->nextChunk($chunk);
@@ -119,7 +119,7 @@
119119
$htmlBody .= sprintf('<img src="%s">', $bannerMobileUrl);
120120
$htmlBody .= '</ul>';
121121

122-
} catch (Google_ServiceException $e) {
122+
} catch (Google_Service_Exception $e) {
123123
$htmlBody .= sprintf('<p>A service error occurred: <code>%s</code></p>',
124124
htmlspecialchars($e->getMessage()));
125125
} catch (Google_Exception $e) {

0 commit comments

Comments
 (0)