<?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: Sending file using REST call task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/493857#M40494</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;If you are working in APS you could use the publish to alfresco task to ensure compatibility. If not be sure that the file variable contains the actual uploaded file and not the reference to its ID&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 09:41:16 GMT</pubDate>
    <dc:creator>jesusmarmol</dc:creator>
    <dc:date>2025-10-14T09:41:16Z</dc:date>
    <item>
      <title>Sending file using REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/42718#M17762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to use REST API endpoint (POST request) to send a file to ACS (Alfresco Content Services). How should i configure my REST call task to be able to do it? I do have a form in which I'm selecting file from my local. Then I would like to use it in my request. Config I've tried:&lt;BR /&gt;&lt;BR /&gt;Endpoint:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{base-cms-url}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/-default-/public/alfresco/versions/1/nodes/-root-/children&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Method: POST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Request mapping (JSON Template):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
    "filedata": ${filetoupload},
    "nodeType": "cm:content",
    "autoRename": true
}&lt;/PRE&gt;&lt;P&gt;Response mapping:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 594px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/281iFE5872EDA8B2BCA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Request Headers:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/284iDFA15F3B621C15D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also tried:&amp;nbsp;multipart/form-data; boundary=---------------------------1234567890&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately I'm getting 400 HTTP error with no error message in my APS logs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using enterprise version of APS (24.x) and ACS (23.1.1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've also tried to use this endpoint with Postman and it works just fine (I'm using form-data there as Body):&lt;/P&gt;&lt;PRE&gt;curl --location --request POST '{{base-cms-url}}/-default-/public/alfresco/versions/1/nodes/-root-/children' \
--header 'Authorization: Basic SOMETOKENGENERATED \
--form 'filedata=@"/path/to/my/file.txt"' \
--form 'nodeType="cm:content"' \
--form 'autoRename="true"'&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2024 09:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/42718#M17762</guid>
      <dc:creator>darkul</dc:creator>
      <dc:date>2024-06-04T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sending file using REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/493155#M40450</link>
      <description>&lt;P&gt;Did you ever get this figured out? I am trying to figure out how to send form-data in a Call REST API Post and send a PDF attachment.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 00:25:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/493155#M40450</guid>
      <dc:creator>JennyBean</dc:creator>
      <dc:date>2025-09-24T00:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending file using REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/493857#M40494</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;If you are working in APS you could use the publish to alfresco task to ensure compatibility. If not be sure that the file variable contains the actual uploaded file and not the reference to its ID&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 09:41:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-file-using-rest-call-task/m-p/493857#M40494</guid>
      <dc:creator>jesusmarmol</dc:creator>
      <dc:date>2025-10-14T09:41:16Z</dc:date>
    </item>
  </channel>
</rss>

