marinofaggiana 3 years ago
parent
commit
8e53d5a8d2
1 changed files with 0 additions and 14 deletions
  1. 0 14
      iOSClient/Networking/NCNetworkingChunkedUpload.swift

+ 0 - 14
iOSClient/Networking/NCNetworkingChunkedUpload.swift

@@ -49,20 +49,6 @@ extension NCNetworking {
                 return completion(uploadErrorCode, uploadErrorDescription)
             }
             
-            /*
-            if let chunkedFilesNames = NCCommunicationCommon.shared.chunkedFile(path: directoryProviderStorageOcId, fileName: metadata.fileName, outPath: directoryProviderStorageOcId, sizeInMB: chunkSize) {
-                
-                filesNames = chunkedFilesNames
-                NCManageDatabase.shared.addChunks(account: metadata.account, ocId: metadata.ocId, chunkFolder: chunkFolder, fileNames: filesNames)
-                
-            } else {
-                
-                NCContentPresenter.shared.messageNotification("_error_", description: "_err_file_not_found_", delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.error, errorCode:NCGlobal.shared.errorReadFile, forced: true)
-                NCManageDatabase.shared.deleteMetadata(predicate: NSPredicate(format: "ocId == %@", metadata.ocId))                
-                return completion(uploadErrorCode, uploadErrorDescription)
-            }
-            */
-            
         } else {
             
             NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataSource, userInfo: ["serverUrl":metadata.serverUrl])