genemu / GenemuFormBundle

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
587 stars 265 forks source link

How to use : GenemuFormBundle #408

Open 01sup opened 8 years ago

01sup commented 8 years ago

I want to allow the user to select multiple files.

So, I'm trying to use the GenemuFormBundle in my Symfony2 app. I followed the steps in the documentation, and the bundle is installed correctly.

but I don't know what to do next to allow the user to select multiple files and save it in one of my database tables !

should i add a new colonne to my database or ... !!

give me steps in details plz :)

WedgeSama commented 8 years ago

When you talk about selecting files, you mean upload files from the client right? If is that, did you already test to upload and save only one file?

If not, take a look to the Symfony documentation about file upload with Doctrine: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html

After that, you can try to use this bundle. You can find an example here: https://github.com/genemu/GenemuFormBundle/blob/master/Resources/doc/jquery/file/entity.md

01sup commented 8 years ago

Yes I tried to do it with one file.

I have one entity named "Article", and I want to associate with every article some files during the adding of the entity (form), so I don't know how to use this bundle !

I'm a bigenner in symfony, so plz if you can tell me the steps in details, i'll be so grateful :)