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

          $scope.fileInfoLists.push(fileInfoList)
          return fileInfoList

        return

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

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