Alamofire 5-对成员'upload(multipartFormData:to:usingThreshold:method:headers:interceptor:fileManager :)'的含糊引用”

问题描述 投票:0回答:1
AF.upload(multipartFormData: { multipartFormData in

            multipartFormData.append(data, withName: "Image")

        }, to: url, usingThreshold: UInt64.init(), method: .post, headers: httpHeaders, interceptor: nil, fileManager: .default)

我收到此错误:

“对成员'upload(multipartFormData:to:usingThreshold:method:headers:interceptor:fileManager :)的不明确引用”]

ios swift alamofire
1个回答
0
投票

尝试此代码

© www.soinside.com 2019 - 2024. All rights reserved.