<?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 i can upload multile images in nuxeo 7.4 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322067#M9068</link>
    <description>&lt;P&gt;The answer was also here&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2015 15:17:26 GMT</pubDate>
    <dc:creator>Greg_Drayon</dc:creator>
    <dc:date>2015-11-20T15:17:26Z</dc:date>
    <item>
      <title>How i can upload multile images in nuxeo 7.4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322063#M9064</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am facing Issues in uploading multiple images in nuxeo using REST API.
i am following below URL for the Batch upload
&lt;A href="https://doc.nuxeo.com/display/NXDOC/How+to+Upload+a+File+in+Nuxeo+Platform+Using+REST+API+Batch+Processing+Endpoint" target="test_blank"&gt;https://doc.nuxeo.com/display/NXDOC/How+to+Upload+a+File+in+Nuxeo+Platform+Using+REST+API+Batch+Processing+Endpoint&lt;/A&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;First I am creating a Batch using below API
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;
i am getting below Response&lt;/P&gt;
&lt;P&gt;{
"batchId": "batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77"
}&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I am adding images to batch using below API
POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/0" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/0&lt;/A&gt;
In the body I am attaching image.&lt;/P&gt;
&lt;P&gt;POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/1" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/1&lt;/A&gt;
POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/2" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/2&lt;/A&gt;
POST &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/3" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77/3&lt;/A&gt;
I have attached 4 images to the batch.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Here i am fetching batch content using below API.
GET  &lt;A href="http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/upload/batchId-293bdcf0-5366-4f5c-ac0f-a18ad7f5eb77&lt;/A&gt;
I am getting response as below
[
{
"size": 8670,
"name": "shirt10.jpg",
"uploadType": "normal"
},
{
"size": 9351,
"name": "shirt9.jpg",
"uploadType": "normal"
},
{
"size": 12178,
"name": "shirt8.jpg",
"uploadType": "normal"
},
{
"size": 8170,
"name": "shirt7.jpg",
"uploadType": "normal"
}
]
Now how to upload this bath to &lt;A href="http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/test-workspace" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/test-workspace&lt;/A&gt;
please let me know what headers and body should contain.
I am not able to upload these batch images to my test-work space
Please help me to solve this issue&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 09:32:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322063#M9064</guid>
      <dc:creator>Ramakrishna_Gad</dc:creator>
      <dc:date>2015-11-19T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How i can upload multile images in nuxeo 7.4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322064#M9065</link>
      <description>&lt;P&gt;According to [the page you gave](https&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 13:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322064#M9065</guid>
      <dc:creator>Greg_Drayon</dc:creator>
      <dc:date>2015-11-19T13:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: How i can upload multile images in nuxeo 7.4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322065#M9066</link>
      <description>&lt;P&gt;I want to upload other files also using files property. Please let me know how to do it in the single request . by batch content is&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 16:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322065#M9066</guid>
      <dc:creator>Ramakrishna_Gad</dc:creator>
      <dc:date>2015-11-19T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How i can upload multile images in nuxeo 7.4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322066#M9067</link>
      <description>&lt;P&gt;OK, after some tests and with the help of &lt;A href="https://answers.nuxeo.com/general/q/17ec746a2fc14f8abe95df691dc23a77/Bad-upload-using-REST-API-and-batch"&gt;this question&lt;/A&gt;, here is how to do it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -X POST -H 'Content-Type: application/json' -u Administrator:Administrator -d '{"entity-type": "document", "name": "myNewDoc", "type": "File", "properties": {"dc:title": "My great new doc", "file:content": {"upload-batch": "batchId-9256ed17-312a-4bbe-ae00-b8b99994200b", "upload-fileId": "0"}, "files:files": [ {"file": {"upload-batch": "batchId-9256ed17-312a-4bbe-ae00-b8b99994200b", "upload-fileId": "1"}, "filename": "test2.JPG"}, {"file":{"upload-batch": "batchId-9256ed17-312a-4bbe-ae00-b8b99994200b", "upload-fileId": "2"}, "filename": "test3.JPG"} ]}}' &lt;A href="http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/workspace" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/workspace&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the curl version, I let you translate to the other version and adapt it to your need. There is a "file" schema part and a "files" schema one.&lt;/P&gt;
&lt;P&gt;Also, from the page of the other question, providing a name, mime-type and length in the "file" part seems useless, as they are taken from the uploaded file. But I added the "filename", because without it, the files tab would display the files without name, so without link to actually download them, enabling you to only download them from the summary tab.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 13:50:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322066#M9067</guid>
      <dc:creator>Greg_Drayon</dc:creator>
      <dc:date>2015-11-20T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How i can upload multile images in nuxeo 7.4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322067#M9068</link>
      <description>&lt;P&gt;The answer was also here&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:17:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-i-can-upload-multile-images-in-nuxeo-7-4/m-p/322067#M9068</guid>
      <dc:creator>Greg_Drayon</dc:creator>
      <dc:date>2015-11-20T15:17:26Z</dc:date>
    </item>
  </channel>
</rss>

