开发者

Symfony: Images still save in web/uploads after I changed web root to public_html

开发者 https://www.devze.com 2023-01-16 20:31 出处:网络
In my symfony project, I changed my webroot directory to public_html to fit with a specific host. However, in the admin generator, when saving a file, the system creates a web folder, then stores the

In my symfony project, I changed my webroot directory to public_html to fit with a specific host.

However, in the admin generator, when saving a file, the system creates a web folder, then stores the image in web/uploads

How can I tell the开发者_运维知识库 system to now save in public_html instead?


Symfony v 1.0

The uploads are saved based on variables stored in the constants.php file.

symfony data folder / symfony / config / constants.php

In this case, the 2 required were:

  'sf_web_dir_name'     => $sf_web_dir_name     = 'web',
  'sf_upload_dir_name'  => $sf_upload_dir_name  = 'uploads',
0

精彩评论

暂无评论...
验证码 换一张
取 消