
Note – if you’re a Kinsta customer, Kinsta uses NGINX, which means your site does not have an. Remove the snippets you just added and your site should start functioning again. If you get an internal server error message after adding this code snippet, your server is likely running PHP in CGI mode, which means you cannot use these commands in your. If you host at Kinsta and need to increase your limit beyond the default 128 MB limit, you can reach out to support on Intercom from anywhere in your Kinsta dashboard: That’s what your host’s support is there for! This is a common request, your host’s support should know exactly what you want, and it should only take a couple of minutes of your time. While we’ll cover some methods that you can try by yourself, the simplest solution is usually to just reach out to your host’s support and ask them to increase the limit for you.

There are several different ways you can do this – the exact method that you choose will depend on your preference and your host’s configuration.

That is, you need to increase the value of the upload_max_filesize directive in your php.ini file. In order to fix this error, you need to increase the file size upload limit. That means if you try to upload a file larger than that limit, you’re going to see the “the uploaded file exceeds the upload_max_filesize directive in php.ini”, or a similar message like “ file_name exceeds the maximum upload size for this site.” How to Fix the uploaded file exceeds the upload_max_filesize directive in php.ini However, a lot of other hosts set the default as small as just 2 MB or 4 MB.

As you can see above, Kinsta sets the default limit at 128 MB, which is quite large and unlikely to ever cause issues.
