         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
 
 ###

            span className: 'file-actions',
                a
                    className: "fa fa-download"
                    onClick: @doDisplay
                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

    doDelete: (e) ->
        e.preventDefault()


        @props.valueLink.requestChange files

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

    render: ->
        classMain = 'file-picker'
