File upload with Symfony3 not working
I am trying to upload file with Symfony3 but with no luck. I have a Profile entity which is linked to User entity with 1-1 relationship. The profile contains a picture column. I have created a ProfileType and Profile Model. Upon submitting the form, the model contains only the File name and nothing else. The $_FILES array is also empty. This is the code. $builder ->add("name", TextType::class, array( "required" => true, )) ->add("email", EmailType::class, array( "required" => true, )) ->add("city", TextType::class, array( "required" => false, )) ->add("country", ChoiceType::class, array(