![](http://www.studyzone4u.com/assets/image/ads6.jpg)
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
Last updated 5 years, 10 months ago | 1602 views 75 5
![Card image](/static/app-assets/images/sz4u-cover.jpg)
PHP | The maximum size of a file that can be uploaded using PHP
The default maximum size of a file that can be uploaded using PHP is 2MB.
upload_max_filesize = 2M;
and we can change the maximum size by changing the value of upload_max_filesize in our php.ini file.
upload_max_filesize = 5M;