增加 max_post_size 和 upload_max_filesize 有什么注意事项? [英] What are the caveats with increasing max_post_size and upload_max_filesize?
问题描述
我想增加服务器上的 max_post_size 和 upload_max_filesize,以便我的应用程序可以处理更大的文件(大到 2gb).但在我这样做之前,有什么注意事项?显然,PHP 开发人员将大小设置得较小是有原因的.我需要一定数量的 RAM 来进行操作吗?任何见解都会有所帮助.
I want to increase max_post_size and upload_max_filesize on my server so that my application will handle larger files (as large as 2gb). But before I do that, what are the caveats? Obviously there was a reason the PHP developers set the size to be low. Will I need a certain amount of RAM for the operation? Any insight would be helpful.
推荐答案
我看到的最大问题之一是 POSTS 是一次性交易.我的意思是,如果您的客户端正在上传一个非常大的文件,并且在完成 90% 时发生网络中断,则他们将不得不从头开始.
One of the biggest issues I see, is that POSTS are a one shot deal. What I mean by that is that if your client is uploading a very large file, and a network interruption occurs when they are 90% finished, they will have to start from scratch.
我相信有基于 Flash 和 Java 的解决方案可以将文件分块上传,然后在您的服务器上重建.我只使用了一个为 Amazon 的 S3 服务制作的名为 Jets3t 的服务,但希望其他人可以推荐另一个.
I believe there are Flash and Java based solutions that will upload a file in chunks to be reconstructed on your server. I have only used one that was made for Amazon's S3 service called Jets3t, but hopefully someone else can recommend another.
这篇关于增加 max_post_size 和 upload_max_filesize 有什么注意事项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!