<?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: Copy file from external AWS S3 bucket in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128680#M34874</link>
    <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;I have additional questions.&lt;BR /&gt;After creating metadata I have this value in the cm:content property contentUrl=s3v2://d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin|mimetype=application/pdf|size=0|encoding=UTF-8|locale=en_US_|id=248.&lt;BR /&gt;So that means I need to put d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin file in the bucket root.&lt;BR /&gt;But I have no idea how to get cm:content in code to find out the file name. And how to modify it to change size=0 to real size.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 10:16:10 GMT</pubDate>
    <dc:creator>Doc_JM</dc:creator>
    <dc:date>2023-09-19T10:16:10Z</dc:date>
    <item>
      <title>Copy file from external AWS S3 bucket</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128678#M34872</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We use Alfresco 7 with AWS S3.&lt;BR /&gt;We use Nodes::createNode to create the node metadata and than use ContentWriter:: putContent to upload the file.&lt;/P&gt;&lt;P&gt;Is it possible to use Nodes::createNode only and copy the file from an external S3 bucket right into the Alfresco's S3 bucket?&lt;BR /&gt;If so, what S3 key should the file have? What additional properties we need to specify to bind the file to the metadata?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:09:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128678#M34872</guid>
      <dc:creator>Doc_JM</dc:creator>
      <dc:date>2023-09-14T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from external AWS S3 bucket</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128679#M34873</link>
      <description>&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Nodes::createNode&lt;/STRONG&gt;: This would create the node metadata as you mentioned.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Direct S3 Copy&lt;/STRONG&gt;: You can copy the file from your external S3 bucket directly to Alfresco's S3 bucket using AWS's CopyObject request.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;S3 Key &amp;amp; Metadata Binding&lt;/STRONG&gt;: The key within Alfresco's S3 bucket will usually follow Alfresco's content URL, which often looks like store://&amp;lt;UUID&amp;gt;.bin. To bind the file to the metadata, you'll need to ensure that the content URL matches what's used in Alfresco's database.&amp;nbsp;&lt;A href="https://www.telltims.net" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Tell Tims&lt;/FONT&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 18 Sep 2023 08:24:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128679#M34873</guid>
      <dc:creator>Rebeccamorley</dc:creator>
      <dc:date>2023-09-18T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from external AWS S3 bucket</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128680#M34874</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;I have additional questions.&lt;BR /&gt;After creating metadata I have this value in the cm:content property contentUrl=s3v2://d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin|mimetype=application/pdf|size=0|encoding=UTF-8|locale=en_US_|id=248.&lt;BR /&gt;So that means I need to put d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin file in the bucket root.&lt;BR /&gt;But I have no idea how to get cm:content in code to find out the file name. And how to modify it to change size=0 to real size.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 10:16:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/copy-file-from-external-aws-s3-bucket/m-p/128680#M34874</guid>
      <dc:creator>Doc_JM</dc:creator>
      <dc:date>2023-09-19T10:16:10Z</dc:date>
    </item>
  </channel>
</rss>

