 
       @$input.bind 'fileuploadalways', (event) =>
         @$input.removeClass 'uploading'
+        @$wrapper.removeClass 'uploading' if @$wrapper?
         @$form.removeClass  'uploading'
 
         @checkMaximum()

      @files = @options.files

      @$form = @$input.closest('form')
      @$submit = @$form.find('input[type=submit]')

      @initFileUpload()
      @addFilesContainer()


    checkMaximum: ->
      if @maximumReached()
        @$wrapper.addClass 'disabled' if @$wrapper?
        @$input.prop('disabled', true)
      else
        @$wrapper.removeClass 'disabled' if @$wrapper?
        @$input.prop('disabled', false)

    maximumReached: ->
