Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use : GenemuFormBundle #408

Open
01sup opened this issue Aug 27, 2015 · 2 comments
Open

How to use : GenemuFormBundle #408

01sup opened this issue Aug 27, 2015 · 2 comments

Comments

@01sup
Copy link

01sup commented Aug 27, 2015

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
Copy link
Contributor

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
Copy link
Author

01sup commented Aug 27, 2015

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants