<?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: REST API create document uploaded file won&amp;apos;t bind in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318827#M5828</link>
    <description>&lt;P&gt;Works like a charm in 5.9.1&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2014 15:56:28 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-01-28T15:56:28Z</dc:date>
    <item>
      <title>REST API create document uploaded file won&amp;apos;t bind</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318825#M5826</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I'm currently following the example on files upload and batch processing. (http://doc.nuxeo.com/display/public/NXDOC/REST+API)&lt;/P&gt;
&lt;P&gt;Step one, creating a batch and uploading a file works&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;X-File-Name: testFile.txt, X-File-Idx:0, X-Batch-ID: mybatchid&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Step two, I can see the file&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://localhost:8080/nuxeo/api/v1/automation/batch/files/mybatchid" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/automation/batch/files/mybatchid&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Step three: a document is created, but the file is not bound to the document.
I cannot find any errors &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the body:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;{
"entity-type": "document",
"name":"NieuwDocument7",
"type": "File",
"properties" : {
"dc:title":"NieuwDocument7",
"file:content": {
"upload-batch":"mybatchid",
"upload-fileId":"0"
}
}
}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm running Nuxeo 5.8 on Windows 7.&lt;/P&gt;
&lt;P&gt;Is there anything wrong with the REST Calls I'm making?&lt;/P&gt;
&lt;P&gt;I'm trying this in order to create a new file from another webpage using javascript. Is there another REST call which I can use for this?&lt;/P&gt;
&lt;P&gt;(page A -- REST call --&amp;gt; create document including file in Nuxeo)&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 14:43:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318825#M5826</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-01-27T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: REST API create document uploaded file won&amp;apos;t bind</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318826#M5827</link>
      <description>&lt;P&gt;There was a bug about batch binding in the REST-API affecting 5.8 : &lt;A href="https://jira.nuxeo.com/browse/NXP-13417" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-13417&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It has been fixed since 5.9.1, and backported in 5.8-HF04&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:18:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318826#M5827</guid>
      <dc:creator>Damien_Metzler</dc:creator>
      <dc:date>2014-01-28T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST API create document uploaded file won&amp;apos;t bind</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318827#M5828</link>
      <description>&lt;P&gt;Works like a charm in 5.9.1&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:56:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-create-document-uploaded-file-won-apos-t-bind/m-p/318827#M5828</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-01-28T15:56:28Z</dc:date>
    </item>
  </channel>
</rss>

