How to increase the upload size limit

By default, the upload size limit via PHP forms is 2 megabytes. You may have to upload a file of more than 2 MB. If that is the case, you can increase the limit on the server by creating a php.ini file in the same folder as your PHP upload script, with the following contents (configured for a 10 MB limit):

upload_max_filesize = 10M
post_max_size = 10M

Please note that it is not recommended to allow uploads of more than 20 MB via forms, for security and stability reasons on the server. It is instead recommended to perform these large transfers via FTP. Any account causing server problems because of too high an upload limit risks being suspended.

Article ID: #HC5026

Was this answer helpful?