             span className: 'file-actions',
                 a
                     className: "fa fa-download"
-                    onClick: @doDisplay
+                    'download': file.generatedFileName
+                    'href': getFileURL file
                 if @props.editable
                     i className: "fa fa-times delete", onClick: @doDelete
 
     doDisplay: (event) ->
         event.preventDefault()
         event.stopPropagation()
-        classNames = event.currentTarget.className.split ' '
-        isDownload = -1 < classNames.indexOf 'fa-download'
-        params = download: 1 if isDownload
-        @props.display params
+        @props.display()
 
     doDelete: (e) ->
         e.preventDefault()

        return URL.createObjectURL file.rawFileObject
    file.url

serializeData = (data) ->
    data = _.map data, (value, key) -> key + '=' + value
    if data.length then '?' + data.toString() else ''

module.exports = FilePicker

###


        @props.valueLink.requestChange files

    displayFile: (file) ->
        unless (url = getFileURL file)
            console.error "broken file : ", file
            return
        window.open url

    render: ->
        classMain = 'file-picker'
