add vich_uploader config

This commit is contained in:
Ryan Prather 2025-01-05 05:54:51 +00:00
parent c6d4a871fa
commit ca379711e2

View File

@ -0,0 +1,20 @@
vich_uploader:
db_driver: orm
metadata:
auto_detection: true
cache: file
type: attribute
mappings:
imageName:
uri_prefix: "%app.path.imageName%"
upload_destination: "%kernel.project_dir%/public/upload/user/profiles"
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
#mappings:
# products:
# uri_prefix: /images/products
# upload_destination: '%kernel.project_dir%/public/images/products'
# namer: Vich\UploaderBundle\Naming\SmartUniqueNamer