Marino Faggiana 7 anos atrás
pai
commit
0ee7fca710
1 arquivos alterados com 1 adições e 5 exclusões
  1. 1 5
      PickerFileProvider/FileProvider.swift

+ 1 - 5
PickerFileProvider/FileProvider.swift

@@ -134,7 +134,7 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
             directoryID = NCManageDatabase.sharedInstance.getDirectoryID(serverUrl)
         }
         
-        // Verify if already exists in tableMetadata (session)
+        // Prepare for send Metadata
         if let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "fileName == %@ AND directoryID == %@", fileName, directoryID!)) {
         
             metadata.fileID = uploadID
@@ -144,10 +144,6 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
             _ = NCManageDatabase.sharedInstance.updateMetadata(metadata)
         }
         
-        //CCNetworking.shared().settingDelegate(self)
-        //CCNetworking.shared().uploadFile(fileName, serverUrl: serverUrl, cryptated: false, onlyPlist: false, session: k_upload_session_foreground, taskStatus: Int(k_taskStatusNone), selector: nil, selectorPost: nil, errorCode: 0, delegate: self)
-        
-        
         self.stopProvidingItem(at: url)
     }