I would like to know why Media Upload does not detect the upload_max_filesize
that had been set in .user.ini
file as shown below.
max_execution_time = 10000
memory_limit = 512M
upload_max_filesize = 20M
post_max_size = 20M
This is the phpinfo.php
.
.png
This is the error message after uploading a 10MB PDF file.
.png
I do not want to apply these settings in php.ini
because there are still multiple projects are running inside the server. That is why I prefer to set all the setting in user.ini
.
Any kind soul please help me edit the image link.
Much appreciate.
I would like to know why Media Upload does not detect the upload_max_filesize
that had been set in .user.ini
file as shown below.
max_execution_time = 10000
memory_limit = 512M
upload_max_filesize = 20M
post_max_size = 20M
This is the phpinfo.php
.
https://i.sstatic/2RHbj.png
This is the error message after uploading a 10MB PDF file.
https://i.sstatic/kIdxq.png
I do not want to apply these settings in php.ini
because there are still multiple projects are running inside the server. That is why I prefer to set all the setting in user.ini
.
Any kind soul please help me edit the image link.
Much appreciate.
1 Answer
Reset to default 2Thanks to @Tim Malone
,
@Kane Uploads are handled in the wp-admin directory, so try placing it in there. I've had success with placing php.ini files in there on shared hosts. – Tim Malone 1 hour ago
Just place .user.ini
to /wp-admin
to overwrite the setting.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745672356a4639482.html
user.ini
file in yourwp-admin
folder? – Tim Malone Commented Apr 22, 2016 at 5:50.htaccess
file:php_value post_max_size 10M
andphp_value upload_max_filesize 10M
– Max Yudin Commented Apr 22, 2016 at 7:09