Hello I am developing an application, where I am uploading multiple images to server and loading on table. What I need to do is I need to show a blue tick mark to images which are successfully loaded to the server and a loader to those which are uploading or not uploaded. Below is code
Alamofire.upload(multipartFormData: { multipartFormData in for imageData in imagesData {
multipartFormData.append(imageData, withName: "(imageParameterName)[]", fileName: "(Date().timeIntervalSince1970).jpeg", mimeType: "image/jpeg")
}
for (key, value) in parameters {
multipartFormData.append(value.data(using: String.Encoding.utf8)!, withName: key)
}
}, to: urlString,
encodingCompletion: { encodingResult in
switch encodingResult {
case .success(let upload, _, _):
upload.responseJSON { response in
}
case .failure(let error):
print(error)
}
})
Any suggestion is most welcome for the flow or process.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…