PHP upload_max_filesize [英] PHP upload_max_filesize

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

问题描述

我有一个php文件上传的问题。

在我的php.ini中,upload_max_filesize设置为4mb。

当我尝试上传一个比这更大的文件我从来没有像预期的那样得到UPLOAD_ERR_INI_SIZE错误,但页面再次显示窗体,没有任何有关文件的信息($ _FILES是空的)。
有什么问题?我做错了什么?

解决方案

检查你的php.ini中的这些设置:
post_max_size,upload_max_filesize和memory_limit在php.ini中。
post_max_size应该大于upload_max_size。

如果这些问题没有解决问题,请点击这里查看更多详情: http://www.satya-weblog.com/2007/05/php-file -upload-and-download-script.html


I've a problem with php file upload.
In my php.ini 'upload_max_filesize' is set to 4mb.
When i try to upload a file bigger than that I never get the UPLOAD_ERR_INI_SIZE error as expected, but the page show the form again without any information about the file ($_FILES is empty). What's the problem? Am I doing something wrong?

解决方案

Check these setting in your php.ini also: post_max_size, upload_max_filesize and memory_limit in php.ini. post_max_size should be greater than upload_max_size.

and if these does not solve problem then check here for more details: http://www.satya-weblog.com/2007/05/php-file-upload-and-download-script.html

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

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