0

When I'm trying to send this:

Alamofire.upload(
            .POST,
            URL,
            parameters: parameters,
            multipartFormData: { multipartFormData in

it prints me the next error:

Type of expression is ambiguous without more context

I want to send my image file with the next parameters:

{
    "user": {
        "firstName": "ABC",
        "email": null,
        "birthDate": "1988-01-03",
        "books": [{
            "id": 1
         }, {
            "id": 2
         }]
    },
    "locale": "en",
    "sign": "It's me", 
}

because of this structure, I cannot append it to multipart and I do not need send my parameters as a body of multipart, but as a parameters.

Is there any solutions for it?

John Doe
  • 811
  • 4
  • 14
  • 26

0 Answers0