Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I tried tRestClient component to perform a file upload and it failed. I couldn't see the multi-part option in there. I can successfully upload using tFileFetch. Is it possible to write the response to a file when using tFileFetch for POST? Are there any other Talend components that can support multi-part uploads?
Hi,
check the cHTTP/cHTTP4 component in Route, should be possible to specify the content type.
Mirko
But in any case I don't understand why you have to upload a file using a form, instead of posting directly the content.
Mirko
This is what I trying to achieve in Talend. The reason I need multipart-form is that's what the server what I'm uploading to supports
I am trying to upload (POST) file using tFileFetch component with multipart/form-data. I am not sure what I am doing wrong, it doesn't work for me.
Here are my screenshots:
Am I missing something?
Appreciate your help.
Thanks for your response.
I get the following response. But its not uploading the file.
==================================
Starting job TestJob at 09:55 15/05/2017.
[statistics] connecting to socket on port 3782
[statistics] connected
[statistics] disconnected
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="New Oracle"
Job TestJob ended at 09:55 15/05/2017. [exit code=0]
=======================================
Now I get the following response after restarted Talend:
Starting job TestScene7 at 14:09 15/05/2017.
[statistics] connecting to socket on port 3426
[statistics] connected
[INFO ]: org.apache.commons.httpclient.HttpMethodBase - Response content length is not known
Status Line: HTTP/1.1 200 OK
*** Response Header ***
Content-Type: text/xml;charset=utf-8
Content-Length: 233
Date: Mon, 15 May 2017 18:09:10 GMT
Server: Unknown
Connection: close
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="New Oracle"
[statistics] disconnected
Job TestJob ended at 14:09 15/05/2017. [exit code=0]
But its not uploading the data.