问题
When I upload a media asset in admin side by same name image (like x.png) this image will create with new name (x-1.png).
I want to replace this image with new image. How can I do that?
回答1:
Delete the original image first, and then upload the new asset with the same name.
回答2:
you need disable cache first by set:
blPU.hibernate.cache.use_second_level_cache=false
blPU.hibernate.cache.use_query_cache=false
blCMSStorage.hibernate.cache.use_query_cache=false
blCMSStorage.hibernate.cache.use_second_level_cache=false
in core/.../default.properties
or override it in admin/ and site/ properties files.
来源:https://stackoverflow.com/questions/58537586/broadleaf-can-i-upload-same-image-in-media-asset-and-override-images