What is the default maximum file size limit for file uploads in PHP?

The default maximum file size limit for file uploads in PHP is typically set to 2MB. If you need to increase this limit, you can do so by editing the php.ini file and changing the values for the "upload_max_filesize" and "post_max_size" directives. Increasing these values will allow users to upload larger files to your server.

// Increase file upload size limit in PHP
ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');