eZ Community » Forums » eZ Platform » How to save a BinaryFile
expandshrink

How to save a BinaryFile

How to save a BinaryFile

Friday 19 February 2016 6:55:08 pm - 2 replies

I have a form defined in symfony2. When submit the form I would like to save for the file field, the value into a BinaryFile\Value for a content type defined.

I have something like this

$builder->setMethod('post') ->add('cv', 'file')->add('submit', 'submit');

How to do it?

What I have defined here seems not sufficient for me

https://doc.ez.no/display/TECHDOC/The+BinaryFile+Field+Type

Monday 22 February 2016 9:34:10 am

Hello,
Your problem seems to be related to Symfony no to eZ. Depending on what you want to do you can easily upload a file : http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html . After  that you can do what you want with your csv file.
Hope it helps. 

Monday 22 February 2016 12:52:06 pm

I've managed to figure it out. Thx

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from