FileItemIterator.next

Iterates through the file items and sets the next file item as the current item, returns false if no more items exist.

All file items referenced by an iterator can be processed within a loop within while (iter.next()) as shown in the example below.

Javascript example:

 var items = controls.fileUploadControl.list.items;
 while (items.next())
 {
   var fileItem = items.fileItem;
   if (fileItem.errorMessage == "Failure")
   { 
      controls.fileUploadControl.backgroundColor = "red";
   }
 }
 

returns boolean