Skip to content

Commit c0d6c79

Browse files
committed
change demo
1 parent 8cc8ed3 commit c0d6c79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

QiniuDemo/QiniuDemo/ViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ - (IBAction)uploadAction:(id)sender {
4343

4444
- (void)uploadImageToQNFilePath:(NSString *)filePath {
4545
self.token = @"你的token";
46-
QNUploadManager *upManager = [[QNUploadManager alloc] init];
46+
QNConfiguration *configuration = [QNConfiguration build:^(QNConfigurationBuilder *builder) {
47+
builder.useConcurrentResumeUpload = true;
48+
}];
49+
QNUploadManager *upManager = [[QNUploadManager alloc] initWithConfiguration:configuration];
4750

4851
__weak typeof(self) weakSelf = self;
4952
QNUploadOption *uploadOption = [[QNUploadOption alloc] initWithMime:nil progressHandler:^(NSString *key, float percent) {

0 commit comments

Comments
 (0)