0
    NSString *policy = [self getPolicyWithSaveKey:saveKey];
    NSString *signature = [self getSignatureWithPolicy:policy];
    //NSString * httpMethod = @"POST";
    NSDictionary * parameDic = [NSDictionary dictionaryWithObjectsAndKeys:policy,@"postdata",
                                signature,@"signature", nil];
    [[AFHTTPRequestOperationManager manager] POST:API_DOMAIN parameters:parameDic constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {

        [formData appendPartWithFileData:data name:@"file" fileName:@"file.png" mimeType:@"multipart/form-data"];
    } success:^(AFHTTPRequestOperation *operation, id responseObject) {

    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {

    }];

返回结果
Not accept Signature is error
不知道是不是需要特殊设置
大神快来啊

2 个回答
0

检查一下access_secret对不对。

后台
图片描述

0

name:@"file"要跟服务器一致

撰写答案

推广链接