0 Replies Latest reply on Oct 30, 2010 7:21 AM by Zombiecook KochtVorWut

    how to access the Result of an fileReference request ?

    Zombiecook KochtVorWut

      I have adjusted this example ( http://cookbooks.adobe.com/post_Uploading_files_from_Flex_using_PHP-5241.html ) of uploading an Image to an Server.
      But the Problem i have is that i wanted to return from the php file some informations for example if the image is really uploaded.
      Does someone know how to read the result that comes in an xml format in actionscript ?


      PHP file:


      $tempFile = $_FILES['file']['tmp_name'];
      $fileName = $_FILES['file']['name'];
      $fileSize = $_FILES['file']['size'];
      $upload = move_uploaded_file($tempFile, "./" . $fileName);
      if(!$upload) {
       echo "<failure>"."upload failed"."</failure>";


      Thank you,