<?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 How to Upload File and Bind him to Document Using the REST API and Download File Attached to Documents Using the REST API  in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-upload-file-and-bind-him-to-document-using-the-rest-api/m-p/319919#M6920</link>
    <description>&lt;P&gt;Are the following documents are up to date: &lt;A href="https://www.nuxeo.com/blog/qa-friday-download-files-attached-documents-rest-api/" target="test_blank"&gt;https://www.nuxeo.com/blog/qa-friday-download-files-attached-documents-rest-api/&lt;/A&gt;  and &lt;A href="https://www.nuxeo.com/blog/qa-friday-upload-files-documents-rest-api/" target="test_blank"&gt;https://www.nuxeo.com/blog/qa-friday-upload-files-documents-rest-api/&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;Please correct me if I am wrong.
Currently I have successfully uploaded file using three rest api steps with POSTMAN:
1. create batchId with http  POST   http://&lt;DOMAIN&gt;/nuxeo/api/v1/upload/
2. upload file  POST http://&lt;DOMAIN&gt;/nuxeo/api/v1/upload/&lt;BATCHID&gt;/idx
3. Create document POST &lt;A href="http://10.204.20.153/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d" target="test_blank"&gt;http://10.204.20.153/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d&lt;/A&gt;
{
"entity-type": "document",
"name":"nameOfDocument",
"type": "File",
"properties": {
"dc:title": "Title",
"dc:description": "Created via a so cool and simple REST API",
"file:content": {
"upload-batch":&lt;BATCHID&gt;,
"upload-fileId":idx
}
}
}&lt;/BATCHID&gt;&lt;/BATCHID&gt;&lt;/DOMAIN&gt;&lt;/DOMAIN&gt;&lt;/P&gt;
&lt;P&gt;What is difference between POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/&lt;/A&gt;&lt;BATCHID&gt;/idx  and
POST &lt;A href="http://localhost:8080/nuxeo/api/v1/automation/batch/upload" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/automation/batch/upload&lt;/A&gt;&lt;/BATCHID&gt;&lt;/P&gt;
&lt;P&gt;What should I use? Is anyone can provide some examples(any programming language) with uploading file and binding to the document and download file attached to the document. Any help will be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2018 21:49:43 GMT</pubDate>
    <dc:creator>Uril_Yak</dc:creator>
    <dc:date>2018-05-11T21:49:43Z</dc:date>
    <item>
      <title>How to Upload File and Bind him to Document Using the REST API and Download File Attached to Documents Using the REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-upload-file-and-bind-him-to-document-using-the-rest-api/m-p/319919#M6920</link>
      <description>&lt;P&gt;Are the following documents are up to date: &lt;A href="https://www.nuxeo.com/blog/qa-friday-download-files-attached-documents-rest-api/" target="test_blank"&gt;https://www.nuxeo.com/blog/qa-friday-download-files-attached-documents-rest-api/&lt;/A&gt;  and &lt;A href="https://www.nuxeo.com/blog/qa-friday-upload-files-documents-rest-api/" target="test_blank"&gt;https://www.nuxeo.com/blog/qa-friday-upload-files-documents-rest-api/&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;Please correct me if I am wrong.
Currently I have successfully uploaded file using three rest api steps with POSTMAN:
1. create batchId with http  POST   http://&lt;DOMAIN&gt;/nuxeo/api/v1/upload/
2. upload file  POST http://&lt;DOMAIN&gt;/nuxeo/api/v1/upload/&lt;BATCHID&gt;/idx
3. Create document POST &lt;A href="http://10.204.20.153/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d" target="test_blank"&gt;http://10.204.20.153/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d&lt;/A&gt;
{
"entity-type": "document",
"name":"nameOfDocument",
"type": "File",
"properties": {
"dc:title": "Title",
"dc:description": "Created via a so cool and simple REST API",
"file:content": {
"upload-batch":&lt;BATCHID&gt;,
"upload-fileId":idx
}
}
}&lt;/BATCHID&gt;&lt;/BATCHID&gt;&lt;/DOMAIN&gt;&lt;/DOMAIN&gt;&lt;/P&gt;
&lt;P&gt;What is difference between POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/&lt;/A&gt;&lt;BATCHID&gt;/idx  and
POST &lt;A href="http://localhost:8080/nuxeo/api/v1/automation/batch/upload" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/automation/batch/upload&lt;/A&gt;&lt;/BATCHID&gt;&lt;/P&gt;
&lt;P&gt;What should I use? Is anyone can provide some examples(any programming language) with uploading file and binding to the document and download file attached to the document. Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 21:49:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-upload-file-and-bind-him-to-document-using-the-rest-api/m-p/319919#M6920</guid>
      <dc:creator>Uril_Yak</dc:creator>
      <dc:date>2018-05-11T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload File and Bind him to Document Using the REST API and Download File Attached to Documents Using the REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-upload-file-and-bind-him-to-document-using-the-rest-api/m-p/319920#M6921</link>
      <description>&lt;P&gt;Please disregard my question.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 13:30:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-upload-file-and-bind-him-to-document-using-the-rest-api/m-p/319920#M6921</guid>
      <dc:creator>Uril_Yak</dc:creator>
      <dc:date>2018-05-14T13:30:55Z</dc:date>
    </item>
  </channel>
</rss>

