1 Reply Latest reply on Oct 19, 2007 11:50 AM by AaffordableWeb

    File Upload Question

    WestSide Level 1

      I am trying to extract and parse the names of files either before or after they are uploaded to the server. There is an event listener that when it hears the moustEvent it calls uploadFiles(). Somehow without looping (or maybe it is looping and I am just not seeing it) it uploads multiple files in one shot, I have not figured quite how it does that, but in any case, I want to parse the name of the file, but I can't figure out how to get the file name during this process.


      Below is that function:

      //Upload File Cue
      private function uploadFiles(event:Event):void{

      if (_files.length > 0){
      _file = FileReference(_files.getItemAt(0));
      _file.addEventListener(Event.OPEN, openHandler);
      _file.addEventListener(ProgressEvent.PROGRESS, progressHandler);
      _file.addEventListener(Event.COMPLETE, completeHandler);
      _file.upload(_uploadURL); // this does the upload from what I can tell

      any help appreciated