src/Kunstmaan/FormBundle/Entity/FormSubmissionFieldTypes/FileFormSubmissionField.php
public function onValidPost(Form $form, FormBuilderInterface $formBuilder, Request $request, ContainerInterface $container)
    {
        $uploadDir = $container->getParameter('form_submission_rootdir');
        $webDir = $container->getParameter('form_submission_webdir');
        $this->upload($uploadDir, $webDir);
    }
public function onValidPost(Form $form, FormBuilderInterface $formBuilder, Request $request, ContainerInterface $container)
    {
        $uploadDir = $container->getParameter('form_submission_rootdir');
        $webDir = $container->getParameter('form_submission_webdir');
        $this->upload($uploadDir, $webDir);
    }
public function onValidPost ( Form $ form , FormBuilderInterface $ formBuilder , Request $ request , ContainerInterface $ container ) { $ uploadDir = $ container -> getParameter ( 'form_submission_rootdir' ) ; $ webDir = $ container -> getParameter ( 'form_submission_webdir' ) ; $ this -> upload ( $ uploadDir , $ webDir ) ; }
This function will be triggered if the form was successfully posted.

@param Form                 $form        the Form
@param FormBuilderInterface $formBuilder the FormBuilder
@param Request              $request     the Request
@param ContainerInterface   $container   the Container
This function will be triggered if the form was successfully posted .