let param = uploadObject
do {
return try req.make(Client.self)
.post("https://up-z2.quiniup.com",
headers: HTTPHeaders([("ContentType","multipart/form-data")]),
beforeSend: { (post) in
try post.content.encode(param)
})
} catch {
throw Abort(.internServerError, reason: "Unable to upload file to quiniu.com.
Underlying error \(error)")
}
Я хочу загрузить файл через сторонний API. Позвонив в запросе я получаю сообщение об ошибке:
Ошибка SecTaskLoadEntitlements = 22 cs_flags = 20, pid = 12915
Кто-нибудь может мне помочь?