PHP大文件上传问题

PHP上传大文件,除了修改

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

此外,还应该修改POST的限制

; Maximum size of POST data that PHP will accept.
post_max_size = 20M

而且两个最好一样,就不会出现验证不一致的现象。

About the Author

在讀研究生,化學/化工專業,主要關注學佛、計算化學、C++、Python、計算機、古文化、哲學、思維方向,渴求與有共同興趣的朋友交流,詳情請查看“關于”頁面。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

Copyright © 2012 勿慢牛 - All Rights Reserved. - Admin - Powered by WordPress