Skip to content

Commit

Permalink
Merge pull request #549 from box/develop-sample-app-update
Browse files Browse the repository at this point in the history
  • Loading branch information
RLEE0731 authored Jun 26, 2018
2 parents b78483c + 44b86b4 commit 4afb78f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ - (void)upload:(BOOL)background
if (background == NO) {
self.nonBackgroundUploadRequest = uploadRequest;
}
uploadRequest.enableCheckForCorruptionInTransit = YES;
[uploadRequest performRequestWithProgress:^(long long totalBytesTransferred, long long totalBytesExpectedToTransfer) {
progressBlock(totalBytesTransferred, totalBytesExpectedToTransfer);
} completion:^(BOXFile *file, NSError *error) {
Expand Down Expand Up @@ -374,7 +373,6 @@ - (void)importAction:(id)sender
BOXFileUploadRequest *uploadRequest = [weakSelf.client fileUploadRequestToFolderWithID:weakSelf.folderID
fromData:imageData
fileName:filename];
uploadRequest.enableCheckForCorruptionInTransit = YES;
[uploadRequest performRequestWithProgress:nil completion:^(BOXFile *file, NSError *error) {

if (error == nil) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ - (void)upload:(NSURL *)url
NSString *associateId = [BOXSampleAppSessionManager generateRandomStringWithLength:32];

BOXFileUploadRequest *uploadRequest = [self.client fileUploadRequestInBackgroundToFolderWithID:BOXAPIFolderIDRoot fromLocalFilePath:path uploadMultipartCopyFilePath:tempPath associateId:associateId];
uploadRequest.enableCheckForCorruptionInTransit = YES;

[uploadRequest performRequestWithProgress:^(long long totalBytesTransferred, long long totalBytesExpectedToTransfer) {
BOXLog(@"totalBytesTransferred, totalBytesExpectedToTransfer: %lld, %lld", totalBytesTransferred, totalBytesExpectedToTransfer);
Expand Down

0 comments on commit 4afb78f

Please sign in to comment.