php 增加文件管理系统中文件下载大小的限制
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19509440/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Increase the limit of file download size in Document management system
提问by Akhil
I am using the Document Management System which is created on KnowledgeTree frame work. My goal is to Download the stored files. When the files are downloaded the contents are limited to certain mb and the rest is ignored. Which results in downloading in parts. How can I increase the file download limit so that the whole file can be downloaded in a single attempt. Thanks in advance for your time.
我正在使用在 KnowledgeTree 框架上创建的文档管理系统。我的目标是下载存储的文件。下载文件时,内容仅限于某些 mb,其余内容将被忽略。这导致部分下载。如何增加文件下载限制,以便一次尝试即可下载整个文件。在此先感谢您的时间。
回答by Prashant Shilimkar
To download large files from server, I have changed the below settings in php.ini file:
为了从服务器下载大文件,我在 php.ini 文件中更改了以下设置:
Upload_max_filesize - 1500 M
Max_input_time - 1000
Memory_limit - 640M
Max_execution_time - 1800
Post_max_size - 2000 M
Now, I am able to upload and download 175MB video on server. Since, I have the dedicated server. So, making these changes were easy.
现在,我可以在服务器上上传和下载 175MB 的视频。因为,我有专用服务器。因此,进行这些更改很容易。