NSURL *url1 = [[NSBundle mainBundle] URLForResource:@"06.jpg" withExtension:nil];
NSURL *url2 = [[NSBundle mainBundle] URLForResource:@"01.jpg" withExtension:nil];
[[AFHTTPRequestOperationManager manager] POST:@"http://127.0.0.1/php/upload/upload-m.php" parameters:@{@"username":@"zhangsan"} constructingBodyWithBlock:^(id<AFMultipartFormData> _Nonnull formData) {
//上传文件
[formData appendPartWithFileURL:url1 name:@"userfile[]" error:nil];
[formData appendPartWithFileURL:url2 name:@"userfile[]" error:nil];
} success:^(AFHTTPRequestOperation * _Nonnull operation, id _Nonnull responseObject) {
NSLog(@"%@",responseObject);
} failure:^(AFHTTPRequestOperation * _Nullable operation, NSError * _Nonnull error) {
NSLog(@"%@",error);
}];