Is there a way to send photo files and parameters using Alamofire to Swift server?

Asked 2 years ago, Updated 2 years ago, 27 views

@ResponseBody
@RequestMapping(value="/mobileProfile.do", method = RequestMethod.POST)
public User edit(@RequestParam String password,@RequestParam String email,@RequestParam MultipartFile uploadedFile){
...
}

Currently, I am receiving parameters and files from the Spring server as above, is there a way to send them when using Alamofire?

swift

2022-09-21 18:24

1 Answers

https://github.com/Alamofire/Alamofire#uploading-data-to-a-server

Please keep that in mind~


2022-09-21 18:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.