1 Reply Latest reply on Jun 9, 2008 11:23 AM by m_hartnett

    URLVariables on upload

      Hi everyone,

      I have been working with a flex mulit file uploader for already a month and have encoutered problem passing my session variables whenever I passes the upload.php file, then I think of another work around to do and it is by sending my global variables or my session id together with the postVariables or URL Variables that I have in my uploader. But it seems that whenever I put a value on my postVariables equal to the value of a label tag it doesn't seem to work. Here's the example:

      public function initApp():void{
      var postVariables:URLVariables = new URLVariables;
      // postVariables.projectID = 55;
      // postVariables.test ="Hello World";
      // postVariables.action = "upload";
      postVariables.test = rnum.text;

      <mx:HTTPService id="feedRequest" url=" http://staging.mashuparts.com/inc/xml/xml_listView.php" useProxy="false"/>

      <mx:Label id="rnum" text="{feedRequest.lastResult.subscribers.test}"/>

      Note: that the rnum.text is my session id value that I get using HTTPService.

      Please help. I need to figure out how to fix it.

      Thank you very much!

        • 1. Re: URLVariables on upload
          m_hartnett Level 3
          I dont know if this helps but this is how we upload files and pass request parameters at the same time.

          var urlVars:URLVariables = new URLVariables();
          urlVars.acctId = acctId;
          urlVars.uploadName = uploadName;
          var request: URLRequest = new URLRequest(urlPath);
          request.data = urlVars;
          request.method = URLRequestMethod.POST;