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

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 matlab透明图叠加
  • ¥50 基于stm32l4系列 使用blunrg-ms的ble gatt 创建 hid 服务失败
  • ¥15 关于#服务器#的问题:在VMware虚拟机中有一个域控服务器,克隆这个服务器后,使用克隆在另外一台服务器VMware虚拟机上打开,修改IP地址, 原域控服务器关闭
  • ¥150 计算DC/DC变换器平均模型中的参数mu
  • ¥25 C语言代码,大家帮帮我
  • ¥15 请问以下文字内容及对应编码是用了什么加密算法或压缩算法呢?
  • ¥50 关于#html5#的问题:H5页面用户手机返回的时候跳转到指定页面例如(语言-javascript)
  • ¥15 无法使用此凭据登录,因为你的域不可用,如何解决?(标签-Windows)
  • ¥15 yolov9的训练时间
  • ¥15 在linux系统下vscode运行robocup3d上场球员报错