巴扎黑2017-04-17 16:16:34
ios的SDK有上传函数可以直接调用,
NSString token = @"从服务端SDK获取";
QNUploadManager *upManager = [[QNUploadManager alloc] init];
NSData *data = [@"Hello, World!" dataUsingEncoding : NSUTF8StringEncoding];
[upManager putData:data key:@"hello" token:token
complete: ^(QNResponseInfo *info, NSString *key, NSDictionary *resp) {
NSLog(@"%@", info);
NSLog(@"%@", resp);
} option:nil];
如果你说的是让你的后台是指你的服务器上传的话,那你也可以让你后台服务器接入服务端的SDK:
http://developer.qiniu.com/docs/v6/index.html