<?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 upload zip files and automatically extract into folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160168#M114154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a custom script that runs when a zip file is added to a folder space. The script will automatically extract the content of the zip file and place the content items in the target folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My approach is to create a content rule based on the condition that the file pattern matches *.zip. This executes a custom script that unzips the contents into the space. If the zip contains content items that have the same name as content items already stored in the space then an error message is displayed informing the user that an existing file or files already exist and provide the name(s) of the existing files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate any comments on this approach and also has anybody done anything similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 15:36:31 GMT</pubDate>
    <dc:creator>davidturner90</dc:creator>
    <dc:date>2008-04-17T15:36:31Z</dc:date>
    <item>
      <title>upload zip files and automatically extract into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160168#M114154</link>
      <description>Hi,I am writing a custom script that runs when a zip file is added to a folder space. The script will automatically extract the content of the zip file and place the content items in the target folder.My approach is to create a content rule based on the condition that the file pattern matches *.zip.</description>
      <pubDate>Thu, 17 Apr 2008 15:36:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160168#M114154</guid>
      <dc:creator>davidturner90</dc:creator>
      <dc:date>2008-04-17T15:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: upload zip files and automatically extract into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160169#M114155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That would be very handy, and yes the approach sounds fine.&amp;nbsp; Have you thought about creating a forge project (&lt;/SPAN&gt;&lt;A href="http://forge.alfresco.com/" rel="nofollow noopener noreferrer"&gt;http://forge.alfresco.com/&lt;/A&gt;&lt;SPAN&gt;) so that other interested developers can help out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW I've wanted to do something like this for a while now, but never seem to find the time.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 02:53:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160169#M114155</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-04-18T02:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: upload zip files and automatically extract into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160170#M114156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A slightly different approach that I'd envisaged was a Web Script that allowed the user to type in (&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; browse, since that's a security problem) the location of a zip file on the local filesystem and select a target space in the repo, and the script would explode the zip directly from disk to that space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would probably be more of an administrator use case then an end-user use case (since the zip file has to get into a local filesystem on the Alfresco server first - something that end users probably won't be allowed to do), but could be quite handy nonetheless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 02:59:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-zip-files-and-automatically-extract-into-folder/m-p/160170#M114156</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-04-18T02:59:31Z</dc:date>
    </item>
  </channel>
</rss>

