如何在通过Sonata媒体配置上传图片时在symfony2奏鸣曲媒体中设置最大上传大小。
答案 0 :(得分:0)
您可以在每个管理类中使用inline validation或在php.ini中设置此约束:
; Maximum allowed size for uploaded files.
upload_max_filesize = 5M
; Must be greater than or equal to upload_max_filesize
post_max_size = 10M