duanchi6377 2009-09-25 10:21
浏览 24
已采纳

上传文件大小限制:Symfony Admin Generator模块

I have form created by the admin generator in the backend of a website. It allows the upload of a video to the site.

It works fine but strangely, the upload fails for files of 10mb or over. However, I have not set any file limits in my form.

Are there Symfony/PHP/Apache/web browser settings regarding this type of behaviour that I can look into?

Or is there a way I can inform Symfony that I'd like to permit larger files?

  • 写回答

2条回答 默认 最新

  • dqj5046 2009-09-25 10:26
    关注

    Even I haven't ever worked with Symfony I expect the problem due to limitations on your Web-Server.

    If you have the possibility to edit or add your .htaccess file then the following line of code will probably help you:

    php_value upload_max_filesize 100M
    

    the 100M in example is for 100 Megabyte.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?