<?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 web script upload modification in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137163#M96163</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 created an &lt;/SPAN&gt;&lt;STRONG&gt;upload web script&lt;/STRONG&gt;&lt;SPAN&gt; that is able to get files and upload them into alfresco.&amp;nbsp; Its similar to the upload web script example given in the 'alfrescowiki webscripts example' documentation.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to modify is the location of where all the files are being uploaded to, which is the &lt;/SPAN&gt;&lt;STRONG&gt;company home space&lt;/STRONG&gt;&lt;SPAN&gt; under content items.&amp;nbsp; I've been tryin to figure out how to just upload files anywhere else besides company home (e.g. &lt;/SPAN&gt;&lt;STRONG&gt;data dictionary space, guest home, or even more ideally into the webscripts space&lt;/STRONG&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the code in the upload javascript&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; // create document in company home for uploaded file&lt;BR /&gt;&amp;nbsp; upload = companyhome.createFile("upload" + companyhome.children.length + "_" + filename);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know &lt;/SPAN&gt;&lt;STRONG&gt;companyhome&lt;/STRONG&gt;&lt;SPAN&gt; is some default script node, and I tried using other default script nodes mentioned in the wiki, but to no prevail (e.g. userhome, space, document, dictionary, etc.).&amp;nbsp; Usually, I get an error saying the 'space cannot be found'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some searches in the Alfresco repository and found like paths, maybe I can set a variable equal to a path&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. 'guest home' &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var guesthome = /${spaces.company_home.childname}/${spaces.guest_home.childname}&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and then use that variable name to replace companyhome, but i'm not sure if thats right at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one can help, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Boniface&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2007 21:52:43 GMT</pubDate>
    <dc:creator>tsgpartner_mui</dc:creator>
    <dc:date>2007-11-01T21:52:43Z</dc:date>
    <item>
      <title>web script upload modification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137163#M96163</link>
      <description>Hi I created an upload web script that is able to get files and upload them into alfresco.&amp;nbsp; Its similar to the upload web script example given in the 'alfrescowiki webscripts example' documentation.&amp;nbsp; What I want to modify is the location of where all the files are being uploaded to, which is the com</description>
      <pubDate>Thu, 01 Nov 2007 21:52:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137163#M96163</guid>
      <dc:creator>tsgpartner_mui</dc:creator>
      <dc:date>2007-11-01T21:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: web script upload modification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137164#M96164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you authenticated when you post to the web script? What is in your upload.post.desc.xml under &amp;lt;authentication&amp;gt;…&amp;lt;/authentication&amp;gt;? If it says none or guest, then you cannot save anything to the repository. The companyhome variable in js in then simply not available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 10:16:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137164#M96164</guid>
      <dc:creator>stijndereede</dc:creator>
      <dc:date>2007-11-05T10:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: web script upload modification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137165#M96165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have 'admin' entered for my authentication tags.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I always had the script to work with companyhome, what I would like to do is to upload files somewhere in the repository besides companyhome space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 11:39:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137165#M96165</guid>
      <dc:creator>tsgpartner_mui</dc:creator>
      <dc:date>2007-11-05T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: web script upload modification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137166#M96166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i got it to work now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 15:34:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137166#M96166</guid>
      <dc:creator>tsgpartner_mui</dc:creator>
      <dc:date>2007-11-06T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: web script upload modification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137167#M96167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you please tell us how you got it to work????&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 14:41:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-upload-modification/m-p/137167#M96167</guid>
      <dc:creator>fromano</dc:creator>
      <dc:date>2015-09-04T14:41:45Z</dc:date>
    </item>
  </channel>
</rss>

