I have a Symfony2 form that is designed to accept an uploaded (xml) file and associate it with an entity. The entity to associate it with is selected from a Select element and so its ID is included in the POST data when the form is submitted.
Everything was working happily, but when I try to upload one particular xml file, Symfony claims that the POST data is empty - and so an error occurs as it cannot find the entity to associate the upload with.
In my controller action that handles the form submission, if I do this;
var_dump($request->request->all());
which returns "array: empty"
If I open the Symfony debug bar, it does say;
Request POST Parameters
No POST parameters
But, when I monitor the request in Firebug, I can see the POST data and it is exactly what I'd expect. So, where has the POST data gone?
I'm using Symfony 2.3.9, by the way. All the XML files are valid XML, if that matters.