Skip to content

Commit 8d5796a

Browse files
author
Marco Pereirinha
committed
Flag the downloading status
1 parent 9c31993 commit 8d5796a

File tree

1 file changed

+4
-0
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media

1 file changed

+4
-0
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-upgrade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ function ( $val ) use ( $media ) {
162162
$path = pathinfo( $public_id );
163163
$public_id = strstr( $public_id, '.' . $path['extension'], true );
164164
$this->media->update_post_meta( $attachment_id, Sync::META_KEYS['public_id'], $public_id );
165+
166+
// Flag the download
167+
update_post_meta( $attachment_id, Sync::META_KEYS['downloading'], true );
168+
165169
if ( ! defined( 'DOING_BULK_SYNC' ) ) {
166170
$this->sync->managers['upload']->add_to_sync( $attachment_id ); // Auto sync if upgrading outside of bulk sync.
167171
}

0 commit comments

Comments
 (0)