ds34222 2015-10-20 01:21
浏览 315
已采纳

php.ini中的post_max_size和upload_max_size在Laravel中没有任何效果

I changed post_max_size and upload_max_size in my php.ini file inside C:\wamp\bin\php\php5.5.12 and for some reason validation fails for large files in Laravel. Is there a reason for this?

I pressed the search key and modified the two in the php.ini file like this:

post_max_size = 200M

upload_max_filesize = 200M

Could there be another php.ini elsewhere? Am I modifying the right file? I am trying to make this work on localhost, so... I am thinking it has to be due because of a config file in Laravel.

I can upload small files, but I can't upload large files. Tried this on 10 small files and 10 large files, and there's no other explanation as to why large files don't pass all validation even if it shouldn't technically speaking.

  • 写回答

1条回答 默认 最新

  • doudang9147 2015-10-20 01:33
    关注

    If you want to know what php.ini did Laravel load, place this:

    phpinfo(); exit;
    

    as the very top of public/index.php file and run your app, looking for all php.ini files there.

    Regards,

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog