Search code examples
resthttptalend

Syntax for tRest component to upload local file Talend


So i have to upload text file to server with PUT request, i know there is similar solution but as it seems, not only for me it is generating errors: solution generating error message

I know there is possibility to this this with tFileFetch component but it only support POST request.

My current job looks like this:

talend Job

And my question is how to write correct syntax in HTTP body to upload local file.


Solution

  • I couldn't get tREST to upload a file with the PUT http method. I'm pretty sure it's not possible. You should be able to do it with a custom java code though, that you can find in this article.