Skip to content

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:

  1. Log in to your cPanel account
  2. Open File Manager
  3. Navigate to:
app → Helper → Constants.php
  1. Update the value of:
MAX_FILE_SIZE

Set it to your desired maximum file size.

Update PHP Configuration

  1. Right-click on the .htaccess file and select Edit
  2. Add the following lines:
apache
php_value memory_limit 10M
php_value post_max_size 30M
php_value upload_max_filesize 10M
  1. Save the file
  2. Refresh your website to apply changes

Important The .htaccess file may not exist by default. If it does not exist, create a new file named .htaccess and add the code above.

For VPS

Follow these steps if you are using a VPS server:

  1. SSH into your server
  2. Open the file:
app → Helper → Constants.php
  1. Update the value of:
MAX_FILE_SIZE

Update PHP Configuration

  1. Open the following file:
backend → php → local.ini
  1. Modify the values of:
  • upload_max_filesize
  • post_max_size

Set them to your desired limits.

Restart Server

  1. Restart your server (method depends on your VPS setup)

If you are using Docker:

Stop the container:

bash
docker-compose down

Start the container again:

bash
docker-compose up -d

Your upload size limit is now updated.