Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Share
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-04-18 11:32:00 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-04-18 11:32:00 +0300
commitf950325ba4b761b5df44d42293c593a0d85cee39 (patch)
treef0f967674eade2bfc944b20f6f877a8f3fd7cb5e /Share
parenteedfd9287d7a60fde48ffcd8c5ebda92205b2883 (diff)
addCustomHeaders
Diffstat (limited to 'Share')
-rw-r--r--Share/NCSelectDestination.m2
-rw-r--r--Share/ShareViewController.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/Share/NCSelectDestination.m b/Share/NCSelectDestination.m
index 9b3dc58e5..9af0543aa 100644
--- a/Share/NCSelectDestination.m
+++ b/Share/NCSelectDestination.m
@@ -251,7 +251,7 @@
{
NSString *serverUrlFileName = [NSString stringWithFormat:@"%@/%@", _serverUrl, fileNameFolder];
- [[NCCommunication sharedInstance] createFolder:serverUrlFileName account:activeAccount completionHandler:^(NSString *account, NSString *ocID, NSDate *date, NSInteger errorCode, NSString *errorDecription) {
+ [[NCCommunication sharedInstance] createFolder:serverUrlFileName addCustomHeaders:nil account:activeAccount completionHandler:^(NSString *account, NSString *ocID, NSDate *date, NSInteger errorCode, NSString *errorDecription) {
if (errorCode == 0) {
[self readFolder];
} else {
diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m
index 10f21ca9f..037f5fd8f 100644
--- a/Share/ShareViewController.m
+++ b/Share/ShareViewController.m
@@ -271,7 +271,7 @@
NSString *fileNameForUpload = [[NCUtility sharedInstance] createFileName:fileName serverUrl:self.serverUrl account:self.activeAccount];
NSString *fileNameServer = [NSString stringWithFormat:@"%@/%@", self.serverUrl, fileNameForUpload];
- (void)[[NCCommunication sharedInstance] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil account:self.activeAccount progressHandler:^(NSProgress * progress) {
+ (void)[[NCCommunication sharedInstance] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil addCustomHeaders:nil account:self.activeAccount 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];