     updatePercent: (percent) ->
       @percent = percent
 
-    finish: (temporaryfiles, singleselect) ->
+    finish: (temporaryfiles, singlemode) ->
       @finished = true
 
       # Update the client provided filenames with the filename from the server

          $scope.fileInfoLists.push(fileInfoList)
          return fileInfoList

        return

      link: (scope, element, attr, uploadController) ->

            $scope.cradminLastFilesSelectedByUser = []

        $scope._addFilesToQueue = (files) ->
          if $scope.apiparameters.singlemode
            $scope.inProgressOrFinishedScope.clear()
          progressInfo = $scope.inProgressOrFinishedScope.addFileInfoList({
            percent: 0
            files: files
