我使用vichuploader存储头像。 Eveyrhing在我的本地服务器上工作正常但在生产服务器中的文件更新期间抛出这样的错误:
request.CRITICAL: Uncaught PHP Exception Symfony\Component\HttpFoundation\File\Exception\FileException: "Unable to create the "kernel.root_dir/../image/avatar/4" directory" at /home/xxx/xxxx.com/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/File.php line 110 {"exception":"[object] (Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException(code: 0): Unable to create the \"kernel.root_dir/../image/avatar/4\" directory at /home/xxx/xxx.com/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/File.php:110)"} []
我在OVH共享主机上使用symfony 3,有没有人知道出了什么问题?
答案 0 :(得分:0)
您无权在目录/ image / avatar中创建文件