dtpd58676 2016-03-14 10:08
浏览 348

无法在Laravel中上传大文件(php.ini设置在我看来是正确的)

I have the following problem in Laravel.

I would like to upload a file through a form. But for some reason if the file is larger than around 2100 KB, the validation fails, and says that the file is 'required' and I did not provide it.

I've read numerous articles, that this can be because of php.ini settings. On my server they are the following:

upload_max_filesize 64M
post_max_size 64M

These values are copied from the output of phpinfo(), so they are in effect.

And despite this, the upload fails even for a 2 MB file. Do you have any ideas what I could check/set to solve this?

I am using laravel 5.2, and PHP 7.

  • 写回答

3条回答 默认 最新

  • doushan9415 2019-08-06 01:31
    关注

    In my case, it was HDD space issue. not enough space to store the file. Laravel should handle it with proper message, instead of indicating user didn't upload anything.

    评论

报告相同问题?

悬赏问题

  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗