|
@@ -492,12 +492,13 @@ import Queuer
|
|
|
|
|
|
|
|
|
let serverUrlFileNameSource = uploadFolder + "/.file"
|
|
|
- let serverUrlFileNameDestination = metadata.urlBase + "/" + NCUtilityFileSystem.shared.getDAV() + "/files/" + userId + "/xxx.mov"
|
|
|
+ let pathServerUrl = CCUtility.returnPathfromServerUrl(metadata.serverUrl, urlBase: metadata.urlBase, account: metadata.account)!
|
|
|
+ let serverUrlFileNameDestination = metadata.urlBase + "/" + NCUtilityFileSystem.shared.getDAV() + "/files/" + userId + pathServerUrl + "/" + metadata.fileName
|
|
|
|
|
|
NCCommunication.shared.moveFileOrFolder(serverUrlFileNameSource: serverUrlFileNameSource, serverUrlFileNameDestination: serverUrlFileNameDestination, overwrite: true) { (account, errorCode, errorDescription) in
|
|
|
|
|
|
if errorCode == 0 {
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
print("error Assembling the chunks")
|
|
|
}
|
|
@@ -506,10 +507,9 @@ import Queuer
|
|
|
} else {
|
|
|
|
|
|
|
|
|
- NCCommunication.shared.deleteFileOrFolder(uploadFolder) { (account, errorCode, errorDescription) in }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ NCCommunication.shared.deleteFileOrFolder(uploadFolder) { (account, errorCode, errorDescription) in
|
|
|
+ print("")
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else {
|