
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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't contain a multipart/form-data or multipart/mixed stream, content type header is application/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.
