Website/config/packages/vich_uploader.yaml

22 lines
601 B
YAML
Raw Normal View History

2024-07-30 03:36:45 +00:00
vich_uploader:
db_driver: orm
metadata:
type: attribute
mappings:
job_video-thumbnail:
uri_prefix: /assets/videos/jobs/thumbnails
upload_destination: '%kernel.project_dir%/public/assets/videos/jobs/thumbnails'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
when@test:
vich_uploader:
mappings:
job_video-thumbnail:
delete_on_update: false
delete_on_remove: false