<?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 file into a specific folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250441#M203571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, im new to Alfresco and im just going through the different webscript examples. The one im looking right now is a form to upload a file into alfresco root home setting the title and description. It works 100% ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The prob comes when i try to upload the file to a different folder. This is what ive been trying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; var folder = roothome.childByNamePath("Sites/my new folder");&lt;BR /&gt; upload = folder.createFile(filename) ;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Since i havent found any example around im not even sure this is the correct way to proceed, so any help will be nice&amp;nbsp; :idea: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2012 09:48:58 GMT</pubDate>
    <dc:creator>lpgc</dc:creator>
    <dc:date>2012-11-16T09:48:58Z</dc:date>
    <item>
      <title>upload file into a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250441#M203571</link>
      <description>Hi, im new to Alfresco and im just going through the different webscript examples. The one im looking right now is a form to upload a file into alfresco root home setting the title and description. It works 100% ….The prob comes when i try to upload the file to a different folder. This is what ive b</description>
      <pubDate>Fri, 16 Nov 2012 09:48:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250441#M203571</guid>
      <dc:creator>lpgc</dc:creator>
      <dc:date>2012-11-16T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: upload file into a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250442#M203572</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;SPAN&gt;here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API&lt;/A&gt;&lt;SPAN&gt; you can find more info about ScriptNode API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some examples here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;General info about WebScripts anatomy here &lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 10:02:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250442#M203572</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-11-16T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: upload file into a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250443#M203573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;worked for me, after a bit of reading &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; var folder = companyhome.childByNamePath("Sites/subfolder1/subforder2");&lt;BR /&gt; upload = folder.createFile(filename) ;&lt;BR /&gt; upload.save();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 10:45:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250443#M203573</guid>
      <dc:creator>lpgc</dc:creator>
      <dc:date>2012-11-16T10:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: upload file into a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250444#M203574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried this and it fails… v. 4.2e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide more details?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The logic seems to work… &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have there been changes in CE 4.2e?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 19:49:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-file-into-a-specific-folder/m-p/250444#M203574</guid>
      <dc:creator>fgjohnson</dc:creator>
      <dc:date>2014-02-05T19:49:00Z</dc:date>
    </item>
  </channel>
</rss>

