0 Replies Latest reply on May 2, 2007 3:44 PM by golem2

    FileReference upload() passing vars to php


      I need to pass a variable to the php script that is called from the upload() function of FileReference

      this is the code without passing the variable:

      // When the user selects a file, the onSelect() method is called, and
      // passed a reference to the FileReference object.
      listener.onSelect = function(selectedFile:FileReference):Void {
      //clean statusArea and details area
      statusArea.text = details.text="";
      // Flash is attempting to upload the image.
      statusArea.text = "Attempting to upload "+selectedFile.name+"\n";
      // Upload the file to the PHP script on the server.

      how can I send a variable to upload.php ?