PHP-最大上传总大小? [英] PHP - Maximum Total Upload Size?

查看:98
本文介绍了PHP-最大上传总大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含15个字段的php网页.用户将使用它来上传图像.我通过上传15张jpg图像(每张大约2 M)进行了测试,没有任何问题.在发布的那天,我将把这个页面移动到另一个Linux共享托管环境(仍然不确定是哪个环境).是否存在某些Web托管环境会限制一个http请求中的总上传大小?

I have a php web page with 15 fields. The user will use it to upload images. I tested this by uploading 15 jpg images, each about 2 M, without any problems. On the day I launch, I will be moving this web page to another Linux shared hosting environment (still not sure which). Are there some web hosting environments that limit the size of total uploads in one http request?

推荐答案

是. (据我所记得),大约有三个配置设置会影响上传大小限制:

Yes. There are (as far as I can remember) three or so configuration settings which will affect upload size restrictions:

upload_max_filesize是每个文件的限制;但是,max_post_size是整个请求的上限,其中包括所有上传的文件.

upload_max_filesize is a limit on each individual file; however, max_post_size is an upper limit on the entire request, which includes all the uploaded files.

不同的托管环境将对这些值进行不同的设置,这可能会影响部署后的能力.

Different hosting environments will have these values set differently, which may affect your abilities upon deployment.

这篇关于PHP-最大上传总大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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