Symfony HttpFoundation UploadedFile “not uploaded due to unknown error” when using Doctrine DataFixtures
问题 I've been using my Attachment entity based on the cookbook recipie How To Handle File Uploads With Doctrine in Symfony 2.3. It works well, even in functional tests. However using it with Doctrine DataFixtures is causing me problems. [Symfony\Component\HttpFoundation\File\Exception\FileException] The file "o-rly-copy.jpg" was not uploaded due to an unknown error. This was not helpful, however I did run php app/console doctrine:fixtures:load -v to bring up a stack trace and it appears the