We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742d864 commit a9d8b29Copy full SHA for a9d8b29
1 file changed
php/upload_banner.php
@@ -87,7 +87,7 @@
87
88
// Read the media file and upload it chunk by chunk.
89
$status = false;
90
- $handle = fopen($imagePath, "rb");
+ $handle = fopen($videoPath, "rb");
91
while (!$status && !feof($handle)) {
92
$chunk = fread($handle, $chunkSizeBytes);
93
$status = $media->nextChunk($chunk);
@@ -119,7 +119,7 @@
119
$htmlBody .= sprintf('<img src="%s">', $bannerMobileUrl);
120
$htmlBody .= '</ul>';
121
122
- } catch (Google_ServiceException $e) {
+ } catch (Google_Service_Exception $e) {
123
$htmlBody .= sprintf('<p>A service error occurred: <code>%s</code></p>',
124
htmlspecialchars($e->getMessage()));
125
} catch (Google_Exception $e) {
0 commit comments