title: Failure : responseSerializationFailed(reason: Alamofire.AFError.ResponseSerializationFailureReason.inputDataNilOrZeroLength)
body: <p>ERR : <code>failure(Alamofire.AFError.responseSerializationFailed(reason: Alamofire.AFError.ResponseSerializationFailureReason.inputDataNilOrZeroLength))</code></p>
  <p>I tried using <code>.responseString</code> after googling about this error, but the error was not resolved.</p>
  <p>My code is</p>
  <pre class="lang-swift prettyprint-override"><code>AF.upload(multipartFormData: { (multipartFormData) in
              
              for image in files {
                              if let image = image.jpegData(compressionQuality: 1) {
                                  multipartFormData.append(image, withName: &quot;files&quot;, fileName: &quot;\(files).jpg&quot;, mimeType: &quot;image/jpeg&quot;) // jpeg 파일로 전송
                              }
              }
              
              for (key, value) in params {
                             
                                  multipartFormData.append(&quot;\(value)&quot;.data(using: .utf8, allowLossyConversion: false)!, withName: &quot;\(key)&quot;)
                          }
              
          }, to: Constant.domainURL + &quot;/product/write&quot;
                  ,method: .post
                    ,headers: header).responseString { (response) in
              print(response)
              
              if let err = response.error{
                  print(err)
                  return
              }
              print(&quot;success&quot;)
          }
  </code></pre>
  <p>Please help me.....</p>