Skip to content

Commit 690d3fe

Browse files
committed
fix missed typo
1 parent 5024210 commit 690d3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-push-sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public function prepare_upload( $post, $down_sync = false ) {
376376
}
377377

378378
$resource_type = $this->get_resource_type( $post );
379-
$max_size = ( 'image' === $resource_type ? 'image_max_size_bytes' : 'video_max_size_bytes' );
379+
$max_size = ( 'image' === $resource_type ? 'max_image_size' : 'max_video_size' );
380380

381381
if ( ! empty( $this->plugin->components['connect']->usage[ $max_size ] ) && $file_size > $this->plugin->components['connect']->usage[ $max_size ] ) {
382382
$max_size_hr = size_format( $this->plugin->components['connect']->usage[ $max_size ] );

0 commit comments

Comments
 (0)