diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-06-01 17:37:28 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-06-01 17:37:28 +0300 |
commit | 460cef573b6767b8fd709a08a26b4c173f78d4c9 (patch) | |
tree | 54ab0cf7108400bfe19af2e5433fa402e10dbc4c /Share | |
parent | c6002d5be34a6d747c465e69a15cbbaede1047dd (diff) |
coding
Diffstat (limited to 'Share')
-rw-r--r-- | Share/ShareViewController.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m index 61f6bc33d..cc3264ff6 100644 --- a/Share/ShareViewController.m +++ b/Share/ShareViewController.m @@ -271,9 +271,7 @@ NSString *fileNameForUpload = [[NCUtility sharedInstance] createFileName:fileName serverUrl:self.serverUrl account:self.activeAccount]; NSString *fileNameServer = [NSString stringWithFormat:@"%@/%@", self.serverUrl, fileNameForUpload]; - [[NCCommunication shared] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil customUserAgent:nil addCustomHeaders:nil taskHandler:^(NSURLSessionTask *task) { - - } progressHandler:^(NSProgress * progress) { + [[NCCommunication shared] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil customUserAgent:nil addCustomHeaders:nil progressHandler:^(NSProgress * progress) { [self.hud progress:progress.fractionCompleted]; } completionHandler:^(NSString *account, NSString *ocId, NSString *etag, NSDate *date, int64_t size, NSInteger errorCode, NSString *errorDescription) { [self.hud hideHud]; |