Marino Faggiana 6 жил өмнө
parent
commit
30ec759707

+ 1 - 3
PickerFileProvider/FileProvider.swift

@@ -943,9 +943,7 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
             metadataNet.taskStatus = Int(k_taskStatusResume)
             
             _ = NCManageDatabase.sharedInstance.addQueueUpload(metadataNet: metadataNet)
-            
-            self.uploadFile()
-            
+                        
         } else {
             
             // OFFICE 365 LEN = 0

+ 3 - 1
iOSClient/Networking/CCNetworking.m

@@ -971,7 +971,9 @@
         
     } else {
     
-        [CCGraphics createNewImageFrom:metadata.fileNameView directoryUser:_directoryUser fileNameTo:metadata.fileID extension:[metadata.fileNameView pathExtension] size:@"m" imageForUpload:YES typeFile:metadata.typeFile writePreview:YES optimizedFileName:NO];
+        if ([metadata.session isEqualToString:k_upload_session_extension] == NO) {
+            [CCGraphics createNewImageFrom:metadata.fileNameView directoryUser:_directoryUser fileNameTo:metadata.fileID extension:[metadata.fileNameView pathExtension] size:@"m" imageForUpload:YES typeFile:metadata.typeFile writePreview:YES optimizedFileName:NO];
+        }
         [self uploadURLSessionMetadata:[[NCManageDatabase sharedInstance] addMetadata:metadata] serverUrl:serverUrl sessionID:uploadID taskStatus:taskStatus assetLocalIdentifier:assetLocalIdentifier selector:selector];
     }
 }