
Fixing the 2MB limit in WordPress
WordPress has a default limit of 2MB for any file uploaded to the system. However, the value is easy to change by adjusting some PHP settings on the server. Let’s look at two ways to change the configuration values to set the limit to suit our needs. The 2MB limit is determined by two PHP configuration variables. These variables are upload_max_filesize and post_max_size. The values can be set in the php.ini file or a .htaccess file. Let’s look at each of these options. Changing the 2MB limit in php.ini The php.ini file is in the /etc folder by default. The location also can be confirmed through the “phpinfo” command. To use this create a file with the .php extension and add the following code: <?php phpinfo(); ?> Save... Read more