|
@@ -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])
|