Increase the PHP File Upload Limit

By default, XAMPP imposes a 128M limit on files uploaded through PHP. To increase the allowed file size for uploads through PHP, follow these steps:

  1. Edit the php.ini file in the etc/ subdirectory of your XAMPP installation directory (usually, /opt/lampp). Within this file, find the post_max_size and upload_max_filesize variables and change them to reflect the new file upload limit. For example, to restrict uploads to not more than 16M, change these variables as shown below:

    ; Maximum size of POST data that PHP will accept.
    ; Maximum allowed size for uploaded files.
  2. Save your changes to the file.

  3. Restart the Apache server.

The new file upload limit will now come into effect.