linux poison RSS
linux poison Email

How To increase the MAX file upload size in PHP

There is a variable in your php.ini file (Location of this file may differ for different distribution but is mainly located in /etc directory or in /etc/php directory, try to find this file)

Open this php.ini file in any text editor and locate the section "File Uploads", now in this section, first, you need to enable the upload of file by modifying the variable "file_uploads = On" and next you can increase the upload limit to any value that you may required by modifying the value of "upload_max_filesize = 20M".

As you can see here in my case I have made the limit to 20MB, you can put your any required value here and restart the apache server to take the effect.


Post a Comment

Related Posts with Thumbnails