Six Stars

Passing Multipart form data in talend

Hi..

 

I need to upload the word document with some metadata to the server. I am using tRestClient component

Capture.PNG

 

I got this error

 

|statusCode|body|string |
|=---------+----+---------------------------------------------------------------------------------------------------------------------------------=|
|200 |null|{"responseStatus":"FAILURE","errors":[{"type":"METHOD_NOT_SUPPORTED","message":"The current request is not a multipart request"}]}|

 

 

How to solve it..??

Is any other component available to pass content-type:multipart/form-data in talend??

 

Waiting for your valuable comments...!!

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Seven Stars

Re: Passing Multipart form data in talend

Try TFileFetch component.
It has same setting as tRestClient with an option to UPLOAD FILE in advance settings.
2 REPLIES
Seven Stars

Re: Passing Multipart form data in talend

Try TFileFetch component.
It has same setting as tRestClient with an option to UPLOAD FILE in advance settings.
Six Stars

Re: Passing Multipart form data in talend

Thank you chirgal.Smiley Happy

 

In tRestClient , I just changed the content type as JSON. The file got uploaded successfully...Smiley Happy