code: protected final void addAllFilesToSuccessfullyUploadedFiles() {
          for (Iterator<UploadFile> iterator = params.files.iterator(); iterator.hasNext(); ) {
              UploadFile file = iterator.next();
  
              if (!successfullyUploadedFiles.contains(file.path)) {
                  successfullyUploadedFiles.add(file.path);
              }
              iterator.remove();
          }
      }
docs: Adds all the files to the list of successfully uploaded files.
  This will automatically remove them from the params.getFiles() list.