Open In App

How to change the maximum upload file size in PHP ?

The maximum size of any file that can be uploaded on a website written in PHP is determined by the values of max_size that can be posted or uploaded, mentioned in the php.ini file of the server. In case of hosted server need to contact the administrator of the hosting server but XAMPP has interpreters for the scripts written in PHP and Perl. It helps to create local http server for developers and it provides them full physical and administrative access to the local server. Hence it is the most widely used server and it is very easy to increase the limit on upload files to the desired value in this server.

The error is generally thrown as follows:



Steps to change file upload size: In case of local server

Note: The upload_max_size limits the size of single attachment and post_max_size is the limit for all the content of the post.



Article Tags :