<?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 flex upload webscript problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/flex-upload-webscript-problem/m-p/206722#M159852</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;im working on a flex front-end for an alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my little app is able to login and to get some folder content from the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for my login and getFolderContent function i am using the alfresco flex sdk like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;private function login():void&lt;BR /&gt;{&lt;BR /&gt;var url:String = "&lt;A href="http://192.168.0.3:8080/alfresco/service/api/login" rel="nofollow noopener noreferrer"&gt;http://192.168.0.3:8080/alfresco/service/api/login&lt;/A&gt;";&lt;BR /&gt;var webScript:WebScriptService = new WebScriptService(url, WebScriptService.GET, onLoginSuccess, onLoginFailure, false);&lt;BR /&gt;var params:Object = new Object();&lt;BR /&gt;params.u = "admin";&lt;BR /&gt;params.pw = "admin";&lt;BR /&gt;webScript.execute(params);&lt;BR /&gt;}&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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public function getFolderContent(folder:String):void&lt;BR /&gt;{&lt;BR /&gt;var url:String = _alfServerURL+"service/sample/folder/"+folder+"?format=atom";&lt;BR /&gt;var webScript:WebScriptService = new WebScriptService(url, WebScriptService.GET, onGetDeskXMLSuccess, onGetDeskXMLFailure, true);&lt;BR /&gt;webScript.ticket = _alfTicket;&lt;BR /&gt;webScript.execute();&lt;BR /&gt;}&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;/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;which works quite well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now i want to implement an upload function but i am not sure how to do that the right way…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;private function onSelect(evt:Event):void&lt;BR /&gt;{&lt;BR /&gt;var url:String = FILE_UPLOAD_URL + "?alf_ticket=" + _alfTicket;&lt;BR /&gt;var request:URLRequest = new URLRequest(url);&lt;BR /&gt;request.method = URLRequestMethod.POST;&lt;BR /&gt;fileRef.upload(request);&lt;BR /&gt;}&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;/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;which ends in a 401 HTTP error…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i am wondering how to send the credentials to the alfresco web service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any pointers ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;philipp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2009 15:01:59 GMT</pubDate>
    <dc:creator>herrt</dc:creator>
    <dc:date>2009-02-17T15:01:59Z</dc:date>
    <item>
      <title>flex upload webscript problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flex-upload-webscript-problem/m-p/206722#M159852</link>
      <description>hiim working on a flex front-end for an alfresco repository.my little app is able to login and to get some folder content from the repository.for my login and getFolderContent function i am using the alfresco flex sdk like this&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rivate function login():void{var url&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring = "http://192.168.0.3:8080/</description>
      <pubDate>Tue, 17 Feb 2009 15:01:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flex-upload-webscript-problem/m-p/206722#M159852</guid>
      <dc:creator>herrt</dc:creator>
      <dc:date>2009-02-17T15:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: flex upload webscript problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flex-upload-webscript-problem/m-p/206723#M159853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;couple things: you don't have the parent folder to upload into, also should have URLRequest&amp;nbsp; in member var not local.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look at the UploadFilesDelegate.as&amp;nbsp; in FlexSpaces&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/flexspaces/source/browse/trunk/FlexSpaces/src/org/integratedsemantics/flexspaces/control/delegate/webscript/UploadFilesDelegate.as" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/flexspaces/source/browse/trunk/FlexSpaces/src/org/integratedsemantics/flexspaces/control/delegate/webscript/UploadFilesDelegate.as&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which uses this flexspaces uploadNew webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/flexspaces/source/browse/trunk/?r=48#trunk/WebScripts/integratedsemantics/upload" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/flexspaces/source/browse/trunk/?r=48#trunk/WebScripts/integratedsemantics/upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;downloads for flexspaces flex/actionscript in latest source section, webscripts in 0.7 / 0.8 webscript download:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forge.alfresco.com/projects/flexspaces/" rel="nofollow noopener noreferrer"&gt;http://forge.alfresco.com/projects/flexspaces/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 18:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flex-upload-webscript-problem/m-p/206723#M159853</guid>
      <dc:creator>stevereiner</dc:creator>
      <dc:date>2009-02-17T18:19:50Z</dc:date>
    </item>
  </channel>
</rss>

