add vich_uploader config
This commit is contained in:
parent
c6d4a871fa
commit
ca379711e2
20
config/packages/vich_uploader.yaml
Normal file
20
config/packages/vich_uploader.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user