How can the max-size of input fields in HTML impact file uploads in PHP?

When the max-size of input fields in HTML is set too low, it can limit the size of files that can be uploaded through a form in PHP. To ensure that larger files can be uploaded, the max-size of the input fields should be set to accommodate the maximum file size that needs to be uploaded.

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