title: How to add more then 2 file parameter in multipartFormData in swift
body: <p>I am new in swift and I want to add more then one file parameter in multipart 
  my code is like this</p>
  
  <pre><code> func uploadWithAlamofirePDFAPI() {
          var paradict = NSMutableDictionary()
          let UrlPost =  Url            
          var Patientidstring = String()
          var Useridstring = String()
          var SurgeryDateString = String()
          var DischargeDateString = String()
          var FundDisbusmentDateString = String()
          var AmountString = String()
          var PatientConditionString = String()
          var IDString = String()
  
          Patientidstring = String(self.patient_idfromservernew)
          Useridstring = String(self.userId!)
          SurgeryDateString = String(surgery_datefromservernew)
          DischargeDateString = String(discharge_datefromservernew)
          FundDisbusmentDateString = String(fund_disbursement_datefromservernew)
          AmountString = String(txtAmount.text ?? "")
          PatientConditionString = String(txtPatientCondition.text ?? "")
          IDString = String(idservernewid)
  
          paradict = ["patient_id":Patientidstring,"hospital_id":Useridstring,"surgery_date":SurgeryDateString,"discharge_date":DischargeDateString,"fund_disbursement_date":FundDisbusmentDateString,"amount":AmountString,"patient_condition":PatientConditionString,"id":IDString,"type":"2"]
  
                   print(paradict)
  
            Alamofire.upload(multipartFormData: { multipartFormData in
               multipartFormData.append(self.datavalue, withName: "bill", fileName: self.FileNamewithFormat, mimeType:"application/pdf")
  
              for (key, value) in paradict {
  
                   print(key,value)
  
               multipartFormData.append((value as AnyObject).data(using: String.Encoding(rawValue: String.Encoding.utf8.rawValue).rawValue)!, withName: key as! String)
              }}, to: UrlPost, method: .post, headers: nil,
                  encodingCompletion: { encodingResult in
                    switch encodingResult {
                    case .success(let upload, _, _):
                      upload.response { [weak self] response in
                        guard let strongSelf = self else {
                          return
                        }
                        debugPrint(response)
  
                       let alert = UIAlertController(title: nil, message: "Success", preferredStyle: .alert)
                       alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in
  
                       let MasterPatientListVC = self?.storyboard!.instantiateViewController(withIdentifier: "MasterPatientListVC") as! MasterPatientListVC
                       self?.navigationController?.pushViewController(MasterPatientListVC, animated: true)
  
                   }))
                   self?.present(alert, animated: true)
  
  
                      }
                    case .failure(let encodingError):
                      print("error:\(encodingError)")
  
                       let alert = UIAlertController(title: nil, message: encodingError as! String, preferredStyle: .alert)
                       alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in
  
                       }))
                       self.present(alert, animated: true)
                    }
            })
          }
  </code></pre>
  
  <p>I want to add 2 more parameters here</p>
  
  <pre><code>   Alamofire.upload(multipartFormData: { multipartFormData in
                   multipartFormData.append(self.datavalue, withName: "bill", fileName: self.FileNamewithFormat, mimeType:"application/pdf") 
  </code></pre>
  
  <p>When I am adding this line shows error:</p>
  
  <pre><code>Alamofire.upload(multipartFormData: { multipartFormData in
               multipartFormData.append(self.datavalue, withName: "bill", fileName: self.FileNamewithFormat, mimeType:"application/pdf"),(self.datavalueClinicSummary, withName: "Clinic", fileName: self.FileNamewithFormatClinicSummary, mimeType:"application/pdf")
  </code></pre>
  
  <p>and the error message is:</p>
  
  <blockquote>
    <p>Consecutive statements on a line must be separated by ';'</p>
  </blockquote>
  
  <p><code>Clinic</code> and <code>Chemical</code> are the two parameter that I want to add them the same way as I added <code>bill</code>. Is it possible?</p>
  
  <p>If yes then How can I add it?
  Thanks in Advance!</p>