Alamofire 4 upload with parameters
问题 I\'m doing the below to upload a PNG file with parameters: Alamofire.upload( multipartFormData: { multipartFormData in multipartFormData.append(UIImagePNGRepresentation(tempImage!)!, withName: \"file\", fileName: \"picture.png\", mimeType: \"image/png\") // Send parameters multipartFormData.append((UserDefaults.standard.value(forKey: Email) as! String).data(using: .utf8)!, withName: \"email\") multipartFormData.append(\"png\".data(using: .utf8)!, withName: \"type\") }, to: \"user/picture\",