Question: The table's first columns are personal data, the second part is about operations for employees. I want to create cells within the row. It works without conditional repeats of the data of all the employees, but if I put the condition it causes me this problem.
This information is part of the tr.

```
  <?php  
        if( !empty($obtOpera)) {
         foreach($obtOpera as $fi) { 
           if( !empty($consult) ) {
             foreach($consult as $fil) {
               if($fil->operation==$fi->operation && $fila->cveEmp ==$fil->cveEmp)  { 

                echo "<td class='$fil->color'<h4> $fil->operation</h4> X";
               }#Close if
            elseif ($fi->operation!=$fil->operation) {
             echo "<td>N/A</td>";

          }#Close Else if
        }#Close consult 
      }#Close if that compare operation
     }#Close foreach fi 
   }#Close if de obtOpera  ?>

```

Here image for table 
[Table](https://i.stack.imgur.com/qpqlr.png)

Answer: 
You need to parameter for url and remove method name. 

```
Alamofire.upload(
multipartFormData: {multipartFormData in
                multipartFormData.appendBodyPart(data: imgData, name: "fileupload", fileName:"image", mimeType: "image/jpg")
                multipartFormData.appendBodyPart(data: keyData, name: "key")
                multipartFormData.appendBodyPart(data: keyJSON, name: "format")
            },
to: "https://httpbin.org/post", //URL,
encodingCompletion: { encodingResult in
    switch encodingResult {
    case .success(let upload, _, _):
        upload.responseJSON { response in
            debugPrint(response)
        }
        upload.uploadProgress(closure: { //Get Progress
                progress in
                    print(progress.fractionCompleted)
            })
    case .failure(let encodingError):
        print(encodingError)
    }
})

```
You are using older `upload` syntax. It should be:

```
if let img = ImageSelectorImg.image, imageSelected {
    let urlStr = "https://post.imageshack.us/upload_api.php"
    let url = URL(string: urlStr)!
    let imgData = UIImageJPEGRepresentation(img, 0.2)!
    let keyData = "AEHK...d66b".data(using: .utf8)!  // key removed for sake of privacy
    let keyJSON = "json".data(using: .utf8)!

    Alamofire.upload(multipartFormData: { multipartFormData in
        multipartFormData.append(imgData, withName: "fileupload", fileName:"image", mimeType: "image/jpg")
        multipartFormData.append(keyData, withName: "key")
        multipartFormData.append(keyJSON, withName: "format")
    }, to: url, encodingCompletion: { encodingResult in
        switch encodingResult {
        case .success(let upload, _, _):
            upload.responseJSON { response in
                if let info = response.result.value as? [String: AnyObject],
                    let links = info["links"] as? [String: AnyObject],
                    let imgLink = links["image_link"] as? String {
                            self.postToFirebase(imgLink)
                }
            }
        case.failure(_): break
        }
    })
}

```

Note, the `method` parameter defaults to `.post`, so you don't have to supply that.