草庐IT

TypedFile

全部标签

android - 在使用改造发布多个图像文件方面需要帮助吗?

如何使用改造在同一参数上添加多个图像/文件以及其他文本数据?Singleimageisuploadingperfectlyusingfollowinginterface@Multipart@POST("/users/updateProfile/")publicvoidupdateProfileWithImage(@Part("user_id")TypedStringfirst_name,@Part("image")TypedFileimage,Callbackcallback); 最佳答案 您可以使用带有@PartMap作为参数的@