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 求指导ADS低噪放设计
  • ¥15 CARSIM前车变道设置
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存