PHP上传失败(空$ _FILES) [英] PHP upload fail (empty $_FILES)

查看:71
本文介绍了PHP上传失败(空$ _FILES)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PHP中有一个常见问题:文件太大时,我的$ _FILES数组为空.

I have a common problem in PHP : My $_FILES array is empty when files are too big.

php.ini:

max_execution_time = 300000
max_input_time = 600000000
memory_limit = 5100MB
post_max_size = 5000MB
upload_max_filesize = 5000MB

文件:

Trouve.tar : 910Mo

配置值很大,但是我想确保脚本有时间和内存来进行上传.

Configuration values are huge but I want to be sure that the script have the time and the memory to do the upload.

因此,授权的大小大于文件的大小,但是与其他人相比,我有相同的错误(例如

So, the authorized size is bigger than the file size, but I have the same error than other people (like problem with uploading the images with php file upload for exemple)

我错过了一些配置设置吗?

Have I missed some configuration setting ?

推荐答案

代替MB使用M

memory_limit = 5100M

post_max_size = 5000M

upload_max_filesize = 5000M

这篇关于PHP上传失败(空$ _FILES)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆