HTTP File Upload Smart Service corrupt file

I am using HTTP File Upload Smart Service to upload file to external system, the files were uploaded fine but they got corrupted, every uploaded files have been added HTTP headers like below

--JDtINckf5HQnr7i2tMF0UtzcX1Km8xffF69mEpmr
Content-Disposition: form-data; name="file"; filename="image_file.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary

The only file type that works fine is PDF, file could still be opened even added HTTP headers, but every others file types (includes zip, image) are corrupted and could not be opened (text file could be open, but the HTTP headers inserted into content ).

My Appian version is 17.4

  Discussion posts and replies are publicly visible

Parents
  • It turns out that the HTTP File Upload Smart Service force to use content type "multipart/form-data", but the targeting API does not allow multipart content type

    I am going to use another targeting API that accept multipart content type, but this API require to pass parameters in form-data, how do I insert parameters into form-data? The smart service's "Parameters" field will only append on the request URL.
Reply
  • It turns out that the HTTP File Upload Smart Service force to use content type "multipart/form-data", but the targeting API does not allow multipart content type

    I am going to use another targeting API that accept multipart content type, but this API require to pass parameters in form-data, how do I insert parameters into form-data? The smart service's "Parameters" field will only append on the request URL.
Children
No Data