<?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 copy a file from one document to another? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317969#M4970</link>
    <description>&lt;P&gt;How to copy a file from one document to another?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 11:32:44 GMT</pubDate>
    <dc:creator>kodermax</dc:creator>
    <dc:date>2018-02-26T11:32:44Z</dc:date>
    <item>
      <title>How to copy a file from one document to another?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317969#M4970</link>
      <description>&lt;P&gt;How to copy a file from one document to another?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 11:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317969#M4970</guid>
      <dc:creator>kodermax</dc:creator>
      <dc:date>2018-02-26T11:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a file from one document to another?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317970#M4971</link>
      <description>&lt;P&gt;The context of the question is too vague. Are you asking programmatically, using Rest API, automation, in JSF UI, Web UI?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:55:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317970#M4971</guid>
      <dc:creator>Guillaume_Renar</dc:creator>
      <dc:date>2018-02-27T08:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a file from one document to another?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317971#M4972</link>
      <description>&lt;P&gt;I use nuxeo-js-client for browser.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:53:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317971#M4972</guid>
      <dc:creator>kodermax</dc:creator>
      <dc:date>2018-02-27T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a file from one document to another?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317972#M4973</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-automation/nuxeo-automation-core/src/main/java/org/nuxeo/ecm/automation/core/operations/document/CopyDocument.java"&gt;CopyOperation.java&lt;/A&gt; automation operation.&lt;/P&gt;
&lt;P&gt;To execute an operation with the JS client, please refer to &lt;A href="https://doc.nuxeo.com/nxdoc/javascript-client/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/javascript-client/&lt;/A&gt; . Something along those lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;         nuxeo.operation('Document.Copy')
          .input(src.uid)
          .params({'target': target.uid})
          .execute()
          .then(function(newlyCreatedDoc) {
            // work with the copied doc
          })
          .catch(function(error) {
            // something went wrong
            throw error;
          });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:59:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-copy-a-file-from-one-document-to-another/m-p/317972#M4973</guid>
      <dc:creator>Guillaume_Renar</dc:creator>
      <dc:date>2018-02-27T10:59:35Z</dc:date>
    </item>
  </channel>
</rss>

