Change maximum file size for files uploaded in WordPress
If after changing Settings > Max upload file size
in your blog network settings, you still see old value for maxium upload file size, then you may be in need of changing your PHP parser configuration. You can do this at least in two ways and this article should help you in this task.
Approach number one comes from this blog article. Create your own php.ini
file, set new values inside:
upload_max_filesize = 32M
post_max_size = 32M
and upload it to the same folder, that keeps your WordPress installation files or to root folder of your hosting.
If this does not work, because newly set values are ignored or you don’t have access to FTP / abillity to change php.ini
file, then simply look around your hosting’s settings or configuration panel.
My hosting uses cPanel, so I had to:
- Go to
Software
section on main screen and click onSelect PHP Version
icon. - Change version of PHP from
5.4 (native)
(can’t change invidual settings in this version) to just5.4
and clickSet as current
. - Click
Switch To PHP Options
. - Click on
32M
value set forpost_max_size
andupload_max_filesize
settings and change it to64M
. - Click on
Save
to confirm changes.
(there are reports, that you can change this similarily in Plesk)
Voila! In Media > Add New
of any of my blogs I could finally see Maximum upload file size: 64 MB
.