Maximum upload file size for
PHP is bound to the lowest value of both
upload_max_filesize directives in your configuration.
post_max_size affects maximum file upload size as file upload is normally an
Maximum size of POST data that PHP will accept.
Its value may be 0 to disable the limit. It is ignored if POST data reading is disabled through
Maximum allowed size for uploaded files.
You can update your
PHP configuration file for these two directives to the values that fit your requirement and then restart your web server.
The following example allows for file upload of not more than 200MB.
post_max_size = 200M upload_max_filesize = 250M
Alternatively, you can add the following lines in your
.htaccess and the setting will apply to scripts from within the
php_value upload_max_filesize 200M php_value post_max_size 250M
Apache for the changes to take effect.
Build a custom object oriented PHP MVC framework and then build an application with it!
Written by Mohd Shakir Zakaria.
Last updated on 2019-02-12.