How to increase the upload limit for files on a Symfony 2 form?

前端 未结 1 1347
别那么骄傲
别那么骄傲 2021-01-12 10:58

I have a form in Symfony where the user uploads files to. These files can be up to 50Mb in size.

However, when I try to upload a file that is about 10Mb (before this

相关标签:
1条回答
  • 2021-01-12 11:09

    You need to set both of these in the php.ini:

    post_max_size = 50M
    
    upload_max_filesize = 50M
    
    0 讨论(0)
提交回复
热议问题