Hi.

I thought that if I have an array of FileReference objects, I can iterate over 
them and call upload() on each one without waiting for a response from the 
previous one. The problem is that my java upload service is only uploading 1 
file and I don't know why the others aren't going thru. 

Here is my code. Has anyone else experienced this before?

Thanks for any tips. -- Matt. 

private function uploadFiles(event:MouseEvent):void{
 var request:URLRequest = new 
URLRequest("http://localhost:8080/MyServer/esri/UploadFile.action";);
    try
    {
     if(fileRefObjects.length == 3){
         for(var i:int=0;i<fileRefObjects.length;i++){
         fileRefObjects[i].upload(request,"upload");
         }
     }
    }
    catch(error:Error)
    {
        Alert.show("Unable to upload file.");
    }
}

Reply via email to