这个问题在这里已有答案:
我想编写一个php文件上传器,但是对于更大的文件。我有什么要修改的?
您必须修改upload_max_filesize和post_max_size,并确保post_max_size大于upload_max_filesize。也改变max_execution_time。