Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能帮我编写在 PHP 网站上上传非常大的文件(如1Gb )的代码?
nginx可以用吗?
有些人告诉 nginx 很好,有些人告诉那不好必须使用基于事件的服务器。请给我一个解决方案。
谢谢
你需要类似的东西:
nginx.conf
client_max_body_size 1024m;
php.ini
post_max_size = 1024M upload_max_filesize = 1024M
那应该工作得很好。
请注意,对于这种类型的文件传输,HTTP 并不是真正的最佳协议,即使您让一切都在您身边工作,您也依赖于浏览器。