Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Wordpress中增加最大文件上传量?_Wordpress - Fatal编程技术网

如何在Wordpress中增加最大文件上传量?

如何在Wordpress中增加最大文件上传量?,wordpress,Wordpress,我在php.ini中设置 upload_max_filesize = 64M post_max_size = 64M 然后尝试.htaccess文件 php_value upload_max_filesize 64M php_value post_max_size 64M 在wp-config.phpdefine('wp_MEMORY_LIMIT','64M')但是没有任何帮助。最大上传大小为32px 如何在Wordpress中增加最大文件上传量?您可以在PHP中尝试: ini_se

我在php.ini中设置

upload_max_filesize = 64M
post_max_size = 64M
然后尝试.htaccess文件

php_value  upload_max_filesize  64M
php_value  post_max_size  64M
在wp-config.php
define('wp_MEMORY_LIMIT','64M')但是没有任何帮助。最大上传大小为32px

如何在Wordpress中增加最大文件上传量?

您可以在PHP中尝试:

ini_set('post_max_size', 100000); // 10Mo
ini_set('upload_max_filesize', 100000);

但要小心,对于某些服务器供应商,您无法更改此限制…

前面添加了
define('WP\u MEMORY\u limit','64M')就在
之后,我尝试了不同的方法,就像尝试

1. change my limit directly on my server
2. through the .htaccess file 
3. wp-config.php 
但这些变化对我都不起作用。然后我在某个地方看到了一篇我在博客中总结的文章(见下文)


如果你想了解更多,这里有一个链接

我只需创建php5.ini并将其放在我目录的根目录中,一段时间后它就会生效。在多站点中,可以在网络设置中增加上载文件的大小。
1. change my limit directly on my server
2. through the .htaccess file 
3. wp-config.php 
All you need to do is 
1. create a php.ini 
2. upload to admin directory