Symfony 2 - UploadedFile, move method failed - Unable to create directory... Symfony 2 - UploadedFile, move method failed - Unable to create directory... symfony symfony

Symfony 2 - UploadedFile, move method failed - Unable to create directory...


If you are using Debian, your web user should be www-data. So you need to ensure that this user has write permission to your web/images directory. This may require root or sudo access, depending on your user permissions. But run this command to give www-data access:

chown -R www-data /var/www/project/Symfony/web/images

This will allow the www-data user to own the directory and create further directories (assuming the owner has write permissions). If you aren't up to speed on permissions, read Debian Permission wiki to understand more.