[英]how to upload Image on server using Alamofire with parameters
I am uploading Image on server using Alamofire only (without using any model class).我仅使用 Alamofire 在服务器上上传图像(不使用任何模型类)。 I've tried multiple link for eg upload image to server using Alamofire in every Link I stuck on this issue " Cannot invoke 'data' with an argument list of type '(using: String.Encoding)' " I do not understand what went wrong.我已经尝试了多个链接,例如在我坚持这个问题的每个链接中使用 Alamofire 将图像上传到服务器“无法使用类型为‘(使用:String.Encoding)’的参数列表调用‘数据’ ”我不明白发生了什么错误的。 kindly let me know below is my code:请让我知道下面是我的代码:
Required parameters are必需的参数是
/*
name:test,
description:testing testing,
image:**filetype** ,
user_id:63,
add_by:63
*/
您应该将值向下转换为字符串而不是任何其他内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.