Marino Faggiana 6 жил өмнө
parent
commit
9235329ddf

+ 1 - 1
iOSClient/Library/OCCommunicationLib/NCRichDocumentTemplate.h

@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
 
 @interface NCRichDocumentTemplate : NSObject
 
-@property NSInteger idTemplate;
+@property NSInteger templateID;
 @property (nonatomic, strong) NSString *delete;
 @property (nonatomic, strong) NSString *extension;
 @property (nonatomic, strong) NSString *name;

+ 1 - 1
iOSClient/Library/OCCommunicationLib/OCCommunication.m

@@ -2830,7 +2830,7 @@
                     NCRichDocumentTemplate *template = [NCRichDocumentTemplate new];
                     
                     if ([dicDatas valueForKey:@"id"] && ![[dicDatas valueForKey:@"id"] isEqual:[NSNull null]])
-                        template.idTemplate = [[dicDatas valueForKey:@"id"] integerValue];
+                        template.templateID = [[dicDatas valueForKey:@"id"] integerValue];
                     
                     if ([dicDatas valueForKey:@"delete"] && ![[dicDatas valueForKey:@"delete"] isKindOfClass:[NSNull class]])
                         template.delete = [dicDatas valueForKey:@"delete"];

+ 9 - 0
iOSClient/Main/Create cloud/NCCreateFormUploadRichdocuments.swift

@@ -221,6 +221,15 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
         
         self.dismiss(animated: true, completion: {
             
+            let ocNetworking = OCnetworking.init(delegate: nil, metadataNet: nil, withUser: self.appDelegate.activeUser, withUserID: self.appDelegate.activeUserID, withPassword: self.appDelegate.activePassword, withUrl: self.appDelegate.activeUrl)
+            
+            ocNetworking?.createNewRichdocuments(withFileName: self.fileName, serverUrl: self.serverUrl, templateID: "\(self.selectTemplate!.templateID)", success: { (path) in
+                
+            }, failure: { (message, errorCode) in
+                
+            })
+            
+            
             //self.appDelegate.activeMain.uploadFileAsset(self.assets, serverUrl: self.serverUrl, useSubFolder: useSubFolder, session: self.session)
         })
     }