Skip to content

Commit

Permalink
"Updating samples to reflect recent changes."
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyDiamondstein committed Jun 10, 2015
1 parent 742d864 commit a9d8b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/upload_banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

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

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

0 comments on commit a9d8b29

Please sign in to comment.