<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I upload a file to REST API? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-upload-a-file-to-REST-API/m-p/2197168#M1025</link>
    <description>Hi,&lt;BR /&gt;Have you already checked component tRestClient to post a request with your json format?&lt;BR /&gt;Here is the component reference:&lt;A href="https://help.talend.com/search/all?query=tRESTClient&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tRESTClient&lt;/A&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Thu, 28 Jan 2016 07:36:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-28T07:36:41Z</dc:date>
    <item>
      <title>How can I upload a file to REST API?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-upload-a-file-to-REST-API/m-p/2197167#M1024</link>
      <description>I am trying to invoke a REST API to load data to a third party provider. My payload should include the csv file itself and data mapping wrapping in a json message. The following CURL command works fine in uploading the file, but I can't seem to make this work in Talend:
&lt;BR /&gt;curl -v -X POST -H "Content-Type: multipart/form-data"&amp;nbsp;-H "loginName: thisismylogin@name" -H "appOrgId: thisismyorgID" -H "accessKey: thisismysecretaccesskey" --form "file=@" --form 'metadata={"collectionName":"data_load_a83082482aeb4fc58d75bc7f4ee1ade1","dataLoadOperation":"INSERT","mapping":,"sourceType":"FILE","headerRow":true,"fieldSeparator":",","escapeCharacter":"\\","quoteCharacter":"\"","dbNameUsed":true,"invokedFromGDM":false};type=application/json' -k 
&lt;BR /&gt;This curl command sends the file with a json message defining what the file looks like, and third party api loads the file. I couldn't figure out how I could configure this on Talend. Which component I should be using? (tRest?) And if it is tRest, what's HTTP body should look like? Any help is very much appreciated.&amp;nbsp;</description>
      <pubDate>Sat, 16 Nov 2024 10:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-upload-a-file-to-REST-API/m-p/2197167#M1024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload a file to REST API?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-upload-a-file-to-REST-API/m-p/2197168#M1025</link>
      <description>Hi,&lt;BR /&gt;Have you already checked component tRestClient to post a request with your json format?&lt;BR /&gt;Here is the component reference:&lt;A href="https://help.talend.com/search/all?query=tRESTClient&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tRESTClient&lt;/A&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 28 Jan 2016 07:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-upload-a-file-to-REST-API/m-p/2197168#M1025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T07:36:41Z</dc:date>
    </item>
  </channel>
</rss>

