           }).progress((evt) ->
             progressInfo.updatePercent(parseInt(100.0 * evt.loaded / evt.total))
           ).success((data, status, headers, config) ->
-            progressInfo.finish(data.temporaryfiles, $scope.apiparameters.singleselect)
+            progressInfo.finish(data.temporaryfiles, $scope.apiparameters.singlemode)
             $scope._setCollectionId(data.collectionid)
             $scope._onFileUploadComplete()
           ).error((data, status) ->

    updatePercent: (percent) ->
      @percent = percent

    finish: (temporaryfiles, singleselect) ->
      @finished = true

      # Update the client provided filenames with the filename from the server

            $scope.cradminLastFilesSelectedByUser = []

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