I am using this curl command to upload an image to our server.
curl —form “image=avatar.png”
How to translate this using Swift’s URLRequest. I am following the instructions here and nothing is working.
I tried using Alamofire and it seems their Multipart has no way setting a body request for image.
1