Permalink
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (42 sloc) 1.27 KB

JQueryFile Field (download uploadify)

Multi files

Minimal configuration:

# app/config/config.yml
genemu_form:
    file:
        swf: /uploadify/uploadify.swf

Add in your routing.yml

genemu_upload:
    resource: "@GenemuFormBundle/Resources/config/routing/upload.xml"

Default Usage:

<?php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        // ...
        ->add('download', 'genemu_jqueryfile')
        ->add('multiple_download', 'genemu_jqueryfile', array(
            'multiple' => true
        ))
        ->add('auto_download', 'genemu_jqueryfile', array(
            'configs' => array(
                'auto' => true
            )
        ))
        ->add('auto_multiple_download', 'genemu_jqueryfile', array(
            'multiple' => true,
            'configs' => array(
                'auto' => true
            )
        ));
}

Extra

Configuration Save Entity File