marinofaggiana il y a 5 ans
Parent
commit
3b4168027d
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      iOSClient/Main/Create cloud/NCCreateFormUploadFileText.swift

+ 11 - 0
iOSClient/Main/Create cloud/NCCreateFormUploadFileText.swift

@@ -216,6 +216,17 @@ class NCCreateFormUploadFileText: XLFormViewController, NCSelectDelegate {
             
             if success {
                 
+                /* TEST
+                let serverUrlFileName = serverUrl + "/" + fileNameSave
+                let fileNameLocalPath = CCUtility.getDirectoryProviderStorageOcId(ocId, fileNameView: fileNameSave)!
+                
+                _ = NCCommunication.sharedInstance.upload(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, dateCreationFile: nil, dateModificationFile: nil, account: self.appDelegate.activeAccount, progressHandler: { (progress) in
+                    //
+                }, completionHandler: { (account, etag, ocId, date, errorCode, errorDescription) in
+                    print(")")
+                })
+                */
+                
                 let metadataForUpload = tableMetadata()
                 
                 metadataForUpload.account = self.appDelegate.activeAccount