Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Minal1
Contributor

Upload multipart file using tRest

Hi All,

Not able to upload file using tRest component. i have 2 key parameters (file and one is request(json data))

but getting error :

</pre><p><b>Root Cause</b></p><pre>org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is javax.servlet.ServletException: org.apache.tomcat.util.http.fileupload.impl.InvalidContentTypeException: the request doesn&#39;t contain a multipart&#47;form-data or multipart&#47;mixed stream, content type header is application&#47;octet-stream

I was able to upload file using tFileFetch but this component does not give response in case of 400 status (Bad Request). In error scenario also i want to capture response coming from API(json data).

Is there any way to get Response of HTTP 400 Bad Request in tFileFetch component.

I also used tRestClient: this component also not supporting multipart upload.

Please suggest solution.

Labels (2)
0 Replies