5 Replies Latest reply on Feb 11, 2007 9:05 PM by _Albertx_

    Bug in DataEvent.UPLOAD_COMPLETE_DATA?

    flexgabriel
      Hello!

      I managed to upload a file from flex to a php script via FileReference.upload() function.
      The php script gets the complete file and moves it to another location correctly.

      Now I need to get the xml Data from this php file.

      I tried to register an Event on the fileReference Object like this:
      fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, onUploadCompleteData);

      But the debugger tells me, that the 'type' (first parameter) is null.

      LanguageReference told me, that the constant is simply a String:
      public static const UPLOAD_COMPLETE_DATA:String = "uploadCompleteData"

      I tried to register with that:
      fr.addEventListener("uploadCompleteData", onUploadCompleteData);

      with this the callback function is never called.

      Any help to get XML Data after upload is highly appreciated!
      Thanks in advance