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

        @form.htmlElement.submit()

    upload: ->
        @fireEvent('start', @)
        if browserInfo.supportsXhrFileUpload()
            @uploadXHR()
        else

        @fireEvent('fieldChange', @)

    _onUploadStart: (args...) =>
        abort = @fireEvent('uploadStart', @, args...)
        if abort
            return new ObservableResult({
                abort: true
            })

    _setupDragEvents: ->
        @dropTargetElement.on('dragover', @_onDragOver)
