diff --git a/php/upload_banner.php b/php/upload_banner.php index 7466580e..715f11bb 100644 --- a/php/upload_banner.php +++ b/php/upload_banner.php @@ -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); @@ -119,7 +119,7 @@ $htmlBody .= sprintf('', $bannerMobileUrl); $htmlBody .= ''; - } catch (Google_ServiceException $e) { + } catch (Google_Service_Exception $e) { $htmlBody .= sprintf('

A service error occurred: %s

', htmlspecialchars($e->getMessage())); } catch (Google_Exception $e) {