Skip to content

Commit

Permalink
Fixing API changes which have not been applied to the OCLibraryExample
Browse files Browse the repository at this point in the history
downloadFile: and uploadFIle: do not exist anymore.
  • Loading branch information
pd authored and nasli committed Oct 24, 2017
1 parent 0c8bf94 commit 770b1a3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions OCLibraryExample/OCLibraryExample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@ - (void)downloadFile {
//Encoding
serverUrl = [serverUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

self.downloadTask = [[AppDelegate sharedOCCommunication] downloadFile:serverUrl toDestiny:localPath withLIFOSystem:YES defaultPriority:YES onCommunication:[AppDelegate sharedOCCommunication] progress:^(NSProgress *progress) {
self.downloadTask = [[AppDelegate sharedOCCommunication]
downloadFileSession:serverUrl
toDestiny:localPath
defaultPriority:YES
onCommunication:[AppDelegate sharedOCCommunication]
progress:^(NSProgress *progress) {

//We make it on the main thread because it is an UX modification
dispatch_async(dispatch_get_main_queue(), ^{
Expand Down Expand Up @@ -376,7 +381,11 @@ - (void)uploadFile {

//Upload block

self.uploadTask = [[AppDelegate sharedOCCommunication] uploadFile:imagePath toDestiny:serverUrl onCommunication:[AppDelegate sharedOCCommunication] progress:^(NSProgress *progress) {
self.uploadTask = [[AppDelegate sharedOCCommunication]
uploadFileSession:imagePath
toDestiny:serverUrl
onCommunication:[AppDelegate sharedOCCommunication]
progress:^(NSProgress *progress) {

NSLog(@"progtress");

Expand Down

0 comments on commit 770b1a3

Please sign in to comment.