What is the maximum size of a file that can be uploaded using PHP and how can we change this?

Last updated 2 years, 5 months ago | 349 views 75     5

Tags:- PHP

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;