Open Your XAMP Server and Open php.ini File
The php.ini file is a configuration file for PHP variables. The following steps show you how to edit the php.ini file:
1. Log into your server hosting the WordPress site.
2. Access the Command Line Interface, and enter the following:
cd 3. Use a text editor to open the php.ini file:
sudo nano php.ini
4. Locate the following line:
upload_max_filesize = 100M
5. Replace 100M with a higher value in megabytes. (256 MB for example)
This file allows you to configure other settings as well:
6. Save the file and exit.
Test your file upload in WordPress – the issue with file size is now resolved.