<?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 Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30317#M12894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to integrate a ColdFusion application with Alfresco 5.2.&amp;nbsp; Using Community edition as proof of concept.&amp;nbsp; I can create folder and empty text files, but I need to upload a file using a ColdFusion CFHTTP POST request.&amp;nbsp; No forms.&amp;nbsp; Any ideas or examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 21:39:48 GMT</pubDate>
    <dc:creator>bgarbee</dc:creator>
    <dc:date>2017-06-30T21:39:48Z</dc:date>
    <item>
      <title>Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30317#M12894</link>
      <description>I need to integrate a ColdFusion application with Alfresco 5.2.&amp;nbsp; Using Community edition as proof of concept.&amp;nbsp; I can create folder and empty text files, but I need to upload a file using a ColdFusion CFHTTP POST request.&amp;nbsp; No forms.&amp;nbsp; Any ideas or examples.</description>
      <pubDate>Fri, 30 Jun 2017 21:39:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30317#M12894</guid>
      <dc:creator>bgarbee</dc:creator>
      <dc:date>2017-06-30T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30318#M12895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using the new &lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-6532-alfresco-52-rest-apis" rel="nofollow noopener noreferrer"&gt;V1 REST API&lt;/A&gt;&amp;nbsp;to &lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode" rel="nofollow noopener noreferrer"&gt;create a file node&lt;/A&gt;&amp;nbsp;and cannot use multipart/form-data for some reason ... then another option might be to create an empty node first (see JSON example ... with an appropriate&amp;nbsp;filename extension, if known) and then &lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent" rel="nofollow noopener noreferrer"&gt;update the binary content&lt;/A&gt; ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:28:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30318#M12895</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-07-03T13:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30319#M12896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Can you provide a JSON example?&amp;nbsp; I cannot figure out how to specify the file path of the file to be uploaded.&amp;nbsp; I'm trying to upload PDF documents. What am I missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to upload a new file with JSON without using a HTML form?&amp;nbsp; The approach of creating an empty file and then updating the file content seems like extra work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:05:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30319#M12896</guid>
      <dc:creator>bgarbee</dc:creator>
      <dc:date>2017-07-03T15:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30320#M12897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POST .../nodes/.../children accepts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. either "application/json" =&amp;gt; which can be used to create a node of any type, including folders &amp;amp;/or empty files. The node "id" will be returned and in the case of file/content can be used to upload the binary file via "PUT .../nodes/id" as a separate call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. or "multipart/form-data" =&amp;gt; which can be used to create &amp;amp; upload the binary file as a single&amp;nbsp;call. The advantage here is that you can also specify additional metadata (node properties).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not provide a mechanism to use solely JSON to upload a binary file since this would require extra work on both client-side &amp;amp; server-side to custom encode &amp;amp; decode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:15:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30320#M12897</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-07-03T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30321#M12898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to update (PUT)&amp;nbsp;a blank document, but it fails.&amp;nbsp; Below is the ColdFusion code I'm using along with the response I received.&amp;nbsp; I know you may not know ColdFusion, but it is pretty self explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ColdFusion Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfoutput&amp;gt;Start&amp;lt;br&amp;gt;&amp;lt;/cfoutput&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;cfset myPDFBinary = ""&amp;gt;&lt;BR /&gt;&amp;lt;CFFILE ACTION="ReadBinary" FILE="c:\a\testdocument2.pdf" VARIABLE="myPDFBinary"&amp;gt;&lt;BR /&gt;&amp;lt;cfset myPDFBase64 = toBase64(myPDFBinary)&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset stFields = { "nodeId": "4c9d02f6-c681-44ae-9289-6f8866fd9b17", "name": "my-file.pdf", "nodeType": "cm:content", "contentBody": "#myPDFBase64#" } &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfhttp url="&lt;A href="http://127.0.0.1:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children?alf_ticket=TICKET_b0523e1ae9db6a5d33c5d2dc977a0bedf2eda53e" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children?alf_ticket=TICKET_b0523e1ae9db6a5d33c5d2dc977a0bedf2eda53e&lt;/A&gt;" method="put" result="httpResp" timeout="60"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfhttpparam type="header" name="Content-Type" value="application/json"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfhttpparam type="body" value="#serializeJSON(stFields)#"/&amp;gt;&lt;BR /&gt;&amp;lt;/cfhttp&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfdump var="#httpResp#"&amp;gt;&lt;BR /&gt;&amp;lt;cfoutput&amp;gt;End&amp;lt;/cfoutput&amp;gt; ---&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The # symbol means to insert content of named variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Start&lt;/P&gt;&lt;TABLE style="cursor: default;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH colspan="2" style="cursor: default;" title="click to collapse"&gt;struct&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Charset&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;UTF-8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;ErrorDetail&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;[empty string]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Filecontent&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;&lt;SPAN&gt;{"error":{"errorKey":"framework.exception.UnsupportedResourceOperation","statusCode":405,"briefSummary":"06060003 The operation is unsupported","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api-explorer.alfresco.com" rel="nofollow noopener noreferrer" target="_blank"&gt;https://api-explorer.alfresco.com&lt;/A&gt;&lt;SPAN&gt;"}}&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Header&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;HTTP/1.1 405 Method Not Allowed Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Content-Length: 321 Date: Thu, 06 Jul 2017 14:37:47 GMT Connection: close&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Mimetype&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;application/json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Responseheader&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;&lt;TABLE style="cursor: default;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH colspan="2" style="cursor: default;" title="click to collapse"&gt;struct&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Connection&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Content-Length&lt;/TD&gt;&lt;TD&gt;321&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Content-Type&lt;/TD&gt;&lt;TD&gt;application/json;charset=UTF-8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Date&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;Thu, 06 Jul 2017 14:37:47 GMT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Explanation&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;Method Not Allowed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Http_Version&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;HTTP/1.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Server&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;Apache-Coyote/1.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Status_Code&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;405&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Statuscode&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;405 Method Not Allowed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="cursor: default;" title="click to collapse"&gt;Text&lt;/TD&gt;&lt;TD style="cursor: default;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;End ---&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:48:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30321#M12898</guid>
      <dc:creator>bgarbee</dc:creator>
      <dc:date>2017-07-06T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30322#M12899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In summary, that API&amp;nbsp;method (POST .../nodes/{parentFolderId}/children) expects POST not PUT (hence you're seeing a 405 Method Not Allowed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In more detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a node (whether it is of type "cm:content" or otherwise) you *must* use POST, see:&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode" rel="nofollow noopener noreferrer"&gt;Create Node&lt;/A&gt;. Please note: if you're using multipart/formdata then you can also use the same API method&amp;nbsp;to create a new version by updating the content using&amp;nbsp;the same file/node name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, to update an existing node of (sub-) type "cm:content" with new binary content, you also have the option to use:&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent" rel="nofollow noopener noreferrer"&gt;Update Node Content&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find it helpful to first experiment with these endpoint API methods using a generic REST client, such as Postman &amp;amp;/or "curl"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the tutorial series linked from:&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-6532"&gt;Alfresco public REST APIs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In particular:&amp;nbsp;&lt;A href="https://community.alfresco.com/community/ecm/blog/2016/10/24/v1-rest-api-part-3-creating-nodes" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/ecm/blog/2016/10/24/v1-rest-api-part-3-creating-nodes&lt;/A&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;A href="https://community.alfresco.com/community/ecm/blog/2016/11/11/v1-rest-api-part-5-versioning-locking" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/ecm/blog/2016/11/11/v1-rest-api-part-5-versioning-locking&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:06:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30322#M12899</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-07-06T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30323#M12900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;Update Node Content is what I was attempting to do with method = PUT when I received the 405 error.&amp;nbsp; If I'm reading the API-Explorer correctly, PUT is the correct method to use. I have already reviewed the tutorial series, but I will review again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:28:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30323#M12900</guid>
      <dc:creator>bgarbee</dc:creator>
      <dc:date>2017-07-07T11:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30324#M12901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the node id (usually a uuid format, such as '7c58ebde-226b-4d6e-b6b3-597fb9c4871f') of the content&amp;nbsp;node then you have the option to &lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent" rel="nofollow noopener noreferrer"&gt;update it's binary content&lt;/A&gt; using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT .../nodes/&lt;SPAN&gt;7c58ebde-226b-4d6e-b6b3-597fb9c4871f/content&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:12:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30324#M12901</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-07-07T12:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have an example of a JSON upload file that does not use a HTML form.  Need to submit request using HTTPRequest.  Trying to upload a file from a ColdFusion application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30325#M12902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the PUT method to work, however, the updated PDF file is corrupted.&amp;nbsp; The update file&amp;nbsp;includes the "contentBodyUpdate":&amp;nbsp; parameter in the PDF file.&amp;nbsp; Below is a snapshot of the beginning of the PDF file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"contentBodyUpdate":"JVBERi0xLjUNJeLjz9MNCjE5IDAgb2JqDTw8L0xpbmVhcml6ZWQgMS9MIDMxNDc2L08gMjEvRSAyNjYyMy9OIDEvVCAzMTE3Mi9IIFsgNDYxIDE1M10+Pg1lbmRvYmoNICAgICAgICAgICAgICAgICAgDQoyNyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the parameters used and the HTTP command.&amp;nbsp; What is wrong with the coding?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset stFields = { "nodeId": "82e2f43f-394d-4b03-bea0-b9fb0fa8e284", "name": "my-file.pdf", "nodeType": "cm:content", "contentBodyUpdate": "#myPDFBase64#" }&lt;/P&gt;&lt;P&gt;&amp;lt;cfhttp url="&lt;A href="http://127.0.0.1:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/82e2f43f-394d-4b03-bea0-b9fb0fa8e284/content?alf_ticket=TICKET_9b7fea546072a7c51a72178464db75c55cc8d2e3" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/82e2f43f-394d-4b03-bea0-b9fb0fa8e284/content?alf_ticket=TICKET_9b7fea546072a7c51a72178464db75c55cc8d2e3&lt;/A&gt;" method="put" result="httpResp" timeout="60"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfhttpparam type="header" name="Content-Type" value="application/json"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfhttpparam type="body" value="#serializeJSON(stFields)#"/&amp;gt;&lt;BR /&gt;&amp;lt;/cfhttp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also discovered the API-Explorer I downloaded does not display the same information the one you referenced.&amp;nbsp; For example, the &lt;SPAN style="font: inherit; margin: 0px; padding: 0px; border: 0px currentColor; vertical-align: baseline; font-size-adjust: inherit; font-stretch: inherit;"&gt;&lt;A href="http://localhost:8080/api-explorer/#!/nodes/updateFileContent" style="margin: 0px; padding: 7px 0px 4px; border-radius: 2px; border: 0px currentColor; width: 50px; text-align: center; color: white; text-transform: uppercase; line-height: inherit; font-family: inherit; font-size: 0.7em; font-style: inherit; font-variant: inherit; font-weight: inherit; text-decoration: none; vertical-align: baseline; display: inline-block; font-stretch: inherit; background-color: #c5862b;" rel="nofollow noopener noreferrer"&gt;PUT&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font: inherit; margin: 0px; padding: 0px 0px 0px 10px; border: 0px currentColor; vertical-align: baseline; font-size-adjust: inherit; font-stretch: inherit;"&gt;&lt;A href="http://localhost:8080/api-explorer/#!/nodes/updateFileContent" style="font: inherit; margin: 0px; padding: 0px; border: 0px currentColor; color: black; text-decoration: underline; vertical-align: baseline; font-size-adjust: inherit; font-stretch: inherit;" rel="nofollow noopener noreferrer"&gt;/nodes/{nodeId}/content&lt;/A&gt;&amp;nbsp;shows a contentBody parameter, not contentBodyUpdate.&amp;nbsp; There must be a newer version of the API-Exxplorer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm beginning to believe JSON is not the way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-anyone-have-an-example-of-a-json-upload-file-that-does-not/m-p/30325#M12902</guid>
      <dc:creator>bgarbee</dc:creator>
      <dc:date>2017-07-11T12:42:52Z</dc:date>
    </item>
  </channel>
</rss>

