How to set max upload size in symfony2 media during image upload

How to set max upload size in symfony2 media when uploading image via Sonata media config.

+3


source to share


1 answer


You can use inline validation in each admin class, or set this limitation in 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

      

0


source







All Articles