# Documentation

# Increase the PHP File Upload Limit

To increase the allowed file size for uploads through PHP, follow these steps:

1. Edit the php.ini file in the php/ subdirectory of your XAMPP installation directory (usually, C:\xampp). 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.
       ; http://php.net/post-max-size
       post_max_size=16M
       ...
       ; Maximum allowed size for uploaded files.
       ; http://php.net/upload-max-filesize
       upload_max_filesize=16M

2. Save your changes to the file.

3. Restart the Apache server.

The new file upload limit will now come into effect.