本文介绍了如何在php中上传多个大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在php中将三个文件上传到了服务器.较小的文件可以正确上传,但是上传较大的文件时出现错误.
I had uploaded three files to the server in php. Smaller files are uploaded correctly butwhen uploading larger files I get an error.
如何在php中上传大文件?
How to upload large files in php?
推荐答案
如果成功上传了较小的文件,但没有成功上传较大的文件,则问题很可能是由php.ini设置引起的.
If the smaller files are uploaded successfully but not the larger files, then most probably the problem is caused by the php.ini settings.
您是否检查了php.ini文件中定义的上传文件的最大允许大小?在php.ini文件中找到以下行,您可以在其中定义大小.例如:
Did you check what is Maximum allowed size for uploaded files defined in your php.ini file? Find the following line in your php.ini file, there you can define the size. For example:
upload_max_filesize = 10M
这篇关于如何在php中上传多个大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!