 
       @$form = @$input.closest('form')
       @$submit = @$form.find('input[type=submit]')
+
       @initFileUpload()
       @addFilesContainer()
       @bindEventHandlers()

    index: 0
    config:
      disableWith: 'Uploading...'
      invalidFormatMessage: 'Invalid file format'
      template: """
        <ul>

      @checkMaximum()

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

    maximumReached: ->
      @options.maximum && @files.length >= @options.maximum



    addFilesContainer: ->
      @$filesContainer = $('<div class="attachinary_container">')
