                 @dropzone.options = $.extend(true, {}, @dropzone.options, @get_djs_config())
 
     preview_template: ->
+        if @props.preview_template?
+            return @props.preview_template()
+
         <div className='dz-preview dz-file-preview'>
             <div className='dz-details'>
                 <div className='dz-filename'><span data-dz-name></span></div>

                <span
                    onClick   = {@close_preview}
                    className = 'close-button-x'
                    style     = {cursor: 'pointer', fontSize: '18px', color:'gray'}
                >
                    <i className="fa fa-times"></i>
                </span>

    displayName: 'dropzone-wrapper'

    propTypes:
        project_id       : rtypes.string.isRequired    # The project to upload files to
        dest_path        : rtypes.string.isRequired    # The path for files to be sent
        config           : rtypes.object               # All supported dropzone.js config options
        event_handlers   : rtypes.object
        preview_template : rtypes.func                 # See http://www.dropzonejs.com/#layout
        show_upload      : rtypes.bool
        on_close         : rtypes.func
        disabled         : rtypes.bool

    getDefaultProps: ->
        config         : {}
