2017-08-28 32 views
0

我正在使用vichuploader存儲頭像。 Eveyrhing是我的本地服務器上,但在生產服務器上拋出這樣的錯誤文件更新期間工作正常:vichuploader無法更新生產中的文件

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)"} [] 

我使用symfony的3 OVH共享的主機,沒有任何人有想法有什麼不好?

回答

0

您無權在目錄/圖片/頭​​像中創建文件