Website/app/config/packages/vich_uploader.yaml
Snoweuph 37a63c29cc
Some checks failed
Quality Check / Check (push) Failing after 3s
#1: Restructure
2024-07-13 12:30:13 +02:00

81 lines
3.1 KiB
YAML

vich_uploader:
db_driver: orm
metadata:
type: attribute
mappings:
job_overview_picture:
uri_prefix: /assets/images/jobs/overview-picture
upload_destination: '%kernel.project_dir%/public/assets/images/jobs/overview-picture'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
job_banner:
uri_prefix: /assets/images/jobs/banner
upload_destination: '%kernel.project_dir%/public/assets/images/jobs/banner'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
job_video:
uri_prefix: /assets/videos/jobs
upload_destination: '%kernel.project_dir%/public/assets/videos/jobs'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
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
event_video:
uri_prefix: /assets/videos/events
upload_destination: '%kernel.project_dir%/public/assets/videos/events'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
event_video-thumbnail:
uri_prefix: /assets/videos/events/thumbnails
upload_destination: '%kernel.project_dir%/public/assets/videos/events/thumbnails'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
asset:
uri_prefix: /assets/assets
upload_destination: '%kernel.project_dir%/public/assets/assets'
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
inject_on_load: false
delete_on_update: true
delete_on_remove: true
when@test:
vich_uploader:
mappings:
job_overview_picture:
delete_on_update: false
delete_on_remove: false
job_banner:
delete_on_update: false
delete_on_remove: false
job_video-thumbnail:
delete_on_update: false
delete_on_remove: false
job_video:
delete_on_update: false
delete_on_remove: false
event_video-thumbnail:
delete_on_update: false
delete_on_remove: false
event_video:
delete_on_update: false
delete_on_remove: false
asset:
delete_on_update: false
delete_on_remove: false