Uploaded Media Size
To change the maximum upload file size limit, follow the instructions below based on your server type.
For cPanel
Follow these steps:
- Log in to your cPanel account
- Open File Manager
- Navigate to:
app → Helper → Constants.php- Update the value of:
MAX_FILE_SIZESet it to your desired maximum file size.
Update PHP Configuration
- Right-click on the
.htaccessfile and select Edit - Add the following lines:
apache
php_value memory_limit 10M
php_value post_max_size 30M
php_value upload_max_filesize 10M- Save the file
- Refresh your website to apply changes
⚠ Important The
.htaccessfile may not exist by default. If it does not exist, create a new file named.htaccessand add the code above.
For VPS
Follow these steps if you are using a VPS server:
- SSH into your server
- Open the file:
app → Helper → Constants.php- Update the value of:
MAX_FILE_SIZEUpdate PHP Configuration
- Open the following file:
backend → php → local.ini- Modify the values of:
upload_max_filesizepost_max_size
Set them to your desired limits.
Restart Server
- Restart your server (method depends on your VPS setup)
If you are using Docker:
Stop the container:
bash
docker-compose downStart the container again:
bash
docker-compose up -dYour upload size limit is now updated.