<?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: Is there any way to automatically upload files from a folder? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316827#M3828</link>
    <description>&lt;P&gt;Thanks bruce, but I'm new in Nuxeo and I'm really lost. I will look at listeners documentation because I don't know where to start.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2012 14:25:58 GMT</pubDate>
    <dc:creator>Gerard_</dc:creator>
    <dc:date>2012-03-23T14:25:58Z</dc:date>
    <item>
      <title>Is there any way to automatically upload files from a folder?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316825#M3826</link>
      <description>&lt;P&gt;I would to know if there is any way that nuxeo upload the files placed in a specific folder.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 12:29:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316825#M3826</guid>
      <dc:creator>Gerard_</dc:creator>
      <dc:date>2012-03-23T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to automatically upload files from a folder?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316826#M3827</link>
      <description>&lt;P&gt;You can write a custom listener that runs on a timed basis. The listener scans the directory and ingests the files it finds in the directory.&lt;/P&gt;
&lt;P&gt;For example...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// events contribution - this one runs once a day, but it could run on any schedule you need (e.g. every 5 minutes)
		
	&amp;lt;schedule id="concena_directoryimport"&amp;gt;
		&amp;lt;eventId&amp;gt;importFromDirectory&amp;lt;/eventId&amp;gt;
		&amp;lt;eventCategory&amp;gt;default&amp;lt;/eventCategory&amp;gt;
		&amp;lt;cronExpression&amp;gt;0 30 6 * * ?&amp;lt;/cronExpression&amp;gt;
	&amp;lt;/schedule&amp;gt;	

	// listener contribution
	
	&amp;lt;listener name="concena_directoryimportlistener" async="true" postCommit="false"
		class="com.concena.core.directoryimport.DirectoryImportListener" priority="165"&amp;gt;
		&amp;lt;event&amp;gt;importFromDirectory&amp;lt;/event&amp;gt;
	&amp;lt;/listener&amp;gt;	
	
	// listener snippet
	
	protected void handleDirectoryImportEvent(Event event) {

		:

		// 2. collect up files in the template import directory
		// read through the specified directory and load file names into an array
		File directory = null;
		String[] files = null;
	
		directory = new File(getImportDirectory());
		files = directory.list(new ImportTemplateFileFilter());	// filter limits collection to Office Word and Excel templates
	
		: 
		
		// etc. - get a CoreSession, walk through the files, create documents from files, log results, etc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Mar 2012 13:21:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316826#M3827</guid>
      <dc:creator>bruce_Grant</dc:creator>
      <dc:date>2012-03-23T13:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to automatically upload files from a folder?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316827#M3828</link>
      <description>&lt;P&gt;Thanks bruce, but I'm new in Nuxeo and I'm really lost. I will look at listeners documentation because I don't know where to start.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:25:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316827#M3828</guid>
      <dc:creator>Gerard_</dc:creator>
      <dc:date>2012-03-23T14:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to automatically upload files from a folder?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316828#M3829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Laurent Doguin from Nuxeo recently posted an article about it on the Nuxeo blog, here is a link to it : &lt;A href="http://dev.blogs.nuxeo.com/2012/03/monday-dev-heaven-multithreaded-transactional-documents-import-nuxeo.html" target="test_blank"&gt;http://dev.blogs.nuxeo.com/2012/03/monday-dev-heaven-multithreaded-transactional-documents-import-nuxeo.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2012 12:43:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-any-way-to-automatically-upload-files-from-a-folder/m-p/316828#M3829</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-03-24T12:43:58Z</dc:date>
    </item>
  </channel>
</rss>

