You need to edit the php.ini
file on your server like so; making it 2M to cover for overhead:
upload_max_filesize = 2M
post_max_size = 2M
Or you can add this to your site’s .htaccess
file:
php_value upload_max_filesize 2M
php_value post_max_size 2M
Since you say you are using XAMPP, you should look at this answer and this blog post. If you are on Windows, look here, C:/xampp/php/php.ini
. Open that file, find the settings for upload_max_filesize
and post_max_size
, change them and restart XAMPP. You should be good to go then.
Or just open up or create an .htaccess
file in your web server root for XAMPP and add those two lines above with the php_value
prefix.