             filename = filepath.split('/').pop().split('\\').pop()
             filenames.push(filename)
         return filenames
+
+    hasMultipleFiles: ->
+        return @getFilenames().length > 1
 
     getFileInfo: ->
         fileinfo = []

    getCurrentFileFieldElement: ->
        return @_getCurrentFileField()?.htmlElement

    upload: (files) ->
        old = @current
        helper = new AsyncFileUploader({
            formElement: @getCurrentFormElement()

        @form.htmlElement.submit()

    upload: ->
        abort = @fireEvent('start', @)
        if abort
            console.log 'aborted'
            return
        if browserInfo.supportsXhrFileUpload()
            @uploadXHR()
        else
