PHP upload_max_filesize
如何将 upload_max_filesize
设置为无限制?
你能说 upload_max_filesize = -1
(就像处理其他事情一样)吗?< /强>
How can you set upload_max_filesize
to no limit?
Could you say upload_max_filesize = -1
(As you can with other things)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,没有,你为什么要这么做?如果您不这样做,服务器的内存将会感谢您。为什么允许用户上传一个将填满您的服务器的“文件”。
Not that I know of, and why would you? Your server's memory will thank you for not doing that. And why allow a user to upload a "file" that will fill your server.
它基于您可以获得的 POST 的最大值。
post_max_size
可能还需要设置内存限制。
如果太大,可能会被滥用。
Its based on the maximum value of the POST you can get.
post_max_size
Might also need to set the memory limit.
If its too large, it can be abused.