@@ -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
@@ -971,7 +971,9 @@
- [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];
}