If WordPress or another application is showing an error like "The uploaded file exceeds the maximum upload size", you need to increase the PHP upload_max_filesize setting. This can be done easily from the Webfort control panel.
Steps to Increase the Upload Limit
- Log in to the Webfort control panel and go to Websites.
- Select the website you want to update.
- Click Advanced in the top navigation, then select Developer Tools.
- Find the PHP.ini editor section.
- Set the following two directives:
- Directive:
upload_max_filesize- Type: text — Value: e.g.200M - Directive:
post_max_size- Type: text — Value: e.g.200M
- Directive:
- Click Create (or Save) to apply the changes.
Note: Values must be specified in megabytes with an uppercase M - for example, 200M for 200 megabytes. It's important to set both upload_max_filesize and post_max_size, as WordPress requires both to allow larger uploads.
Why Set Both Directives?
upload_max_filesize- controls the maximum size of an individual file upload.post_max_size- controls the maximum size of the entire POST request, which must be equal to or larger thanupload_max_filesize.
If you're unsure what value to set or the error persists after making changes, contact our support team and we'll help you get it sorted.