marinofaggiana 5 years ago
parent
commit
923160f747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Main/CCMain.m

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -1130,7 +1130,7 @@
             (void)[[NCManageDatabase sharedInstance] addMetadata:metadataForUpload];
             
             // Add Medtadata MOV LIVE PHOTO for upload
-            if (asset.mediaSubtypes == PHAssetMediaSubtypePhotoLive && CCUtility.getMOVLivePhoto) {
+            if (asset.mediaSubtypes == PHAssetMediaSubtypePhotoLive && CCUtility.getMOVLivePhoto && urls.count == assets.count) {
                 
                 NSUInteger index = [assets indexOfObject:asset];
                 NSURL *url = [urls objectAtIndex:index];