upload_max_filesize and post_max_size directives determines the maximum file size will be allowed by php to upload on server. Default this value is set to 2M, You can increase this value as per your application requirements. Do not increase this value to high on shared servers.
Increase Max Upload File Size PHP
To increase maximum allowed upload file size edit PHP configuration file “php.ini” and increase the size of following value.
20Mpost_max_size = 20M
After making above changes restart Apache service.
Disable File Upload in PHP
If our application don’t need to upload files, we can simply disable by setting Off to file_uploads directive.
Set Max File Upload in PHP
Also to set maximum number of files that can be uploaded with a single request set max_file_uploads directive.