         $scope.dragged_over = false
         $scope.state        = 'processing'
 
-        if @singleFile
+        if @multiple
+          @uploadMultipleFiles()
+        else
           @processQueue()
-        else
-          @uploadMultipleFiles()
 
 
       ).call myDropzone

      failures: []

      processDrop: (items) ->
        @singleFile = @isSingleFileDropped(items)

      isSingleFileDropped: (items)->
        items.length == 1 && items[0].webkitGetAsEntry().isFile

            ".html"
          ].join ""

          $scope.count_down = 5
          @countDown()

      allSuccessful: () ->
