0 Replies Latest reply on Feb 21, 2008 7:31 AM by trycold

    Successfully Upload file


      I want user to upload files to the server so I am using something like this.

      file = new FileReference();
      file.addEventListener(Event.SELECT, fileSelected);
      file.addEventListener(Event.COMPLETE, fileUploaded);

      I want to certain database entries only of they have uploaded file successfully. My problem is even sometimes it won't upload the files because I gave the path wrong it always run the fuction fileUploaded. it never goes to the error. What should I use to make sure that it has uploaded the file and not giving an error.