Hi, I would like to know how to limit upload size for media? Because it’s configured at 64 Mb and users can submit media… so i’m afraid they would overload the server!
My question is, how to reduce it to 1 Mb for example?
Hello, I have two ways for limit upload size.
1. If you can edit or override the system php.ini file, you can decrease the maximum file and post sizes. For example, upload_max_filesize = 10M and post_max_size = 10M
2. But if you cannot edit or override the system php.ini file add below code into your .htaccess file.
php_value upload_max_filesize 10M
php_value post_max_size = 10M
The easy way, just open wordpress.org and you can find plugins that limit upload size 😉
Your email address will not be published. Required fields are marked *