Increase File Upload Size in PHP

154

requirement. Using the PHP configuration file (php.ini), you can increase or decrease the file upload size in PHP.

The upload_max_filesize and post_max_size variable’s value need to be modified in php.ini file. Follow the below steps to increase the limit of file upload size in PHP.

  • Open the php.ini file in the text editor.
  • Search for upload_max_filesize variable and specify the size which you want to increase.
  • Search for post_max_size variable and specify the size which you want to increase. (Basically it same as upload_max_filesizevariable value)
  • Once done, save the modified php.ini file and restart the server.

Leave A Reply

Your email address will not be published.