Home  >  Article  >  Backend Development  >  ZenTao attachment size limit, PHP upload file size limit

ZenTao attachment size limit, PHP upload file size limit

WBOY
WBOYOriginal
2016-08-08 09:22:563827browse

The following is excerpted from a Q&A on Baidu:

问:
禅道系统
最大上传文件才2M
怎么修改增大

答:
在主机根目录有个Php5.ini文件,下载下来添加以下两个语句,上传覆盖即可。
upload_max_filesize=50M
post_max_size=50M

第二个不能小于第一个,因为post可能包括附件。
当然是完全的可以

追问:
我改了 但是禅道里显示还是不对 不是获取的这个值啊
我是想知道 是不是在禅道里有什么设置
我禅道里显示50M
我本身配置2M 最大是8M 我在禅道中上传14M的一样可以成功

提问者评价:
虽然没解决问题 但是还是谢谢

The file upload size limit of the ZenTao system is the upload_max_filesize of the detection system php:

var maxUploadInfo = '<?php echo strtoupper(ini_get(&#39;upload_max_filesize&#39;));?>';

So modifying this value is correct, the problem lies in the modified settings did not take effect. If it needs to take effect, you can restart nginx or apache, but some of them still do not take effect. At this time, you need to restart php-cfm and service php-cfm restart, otherwise PHP will not load the latest configuration information

The above introduces the ZenTao attachment size limit and PHP upload file size limit, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn