Uploaded file size configuration

To change the limit of maximum size of uploaded file, please follow these steps

For cPanel

  1. Log into your cPanel account
  2. Go to the File Manager
  3. Open the config > constants.php file
  4. Update the value of MAX_IMAGE_SIZE, MAX_VIDEO_SIZE, MAX_FILE_SIZE to your desired value.
  5. Right-click on the .htaccess file and select "Edit"
  6. Add these following line to the file:
  7. php_value memory_limit 10M

    php_value post_max_size 30M

    php_value upload_max_filesize 10M

  8. Save the changes and close the file
  9. Refresh the website to see the changes take effect

Note: The .htaccess file may not be present in the folder by default. In that case, you will need to create a new file named .htaccess and add the above code.

For VPS server

  1. SSH to your server
  2. Open the backend > config > constants.php file
  3. Update the value of MAX_IMAGE_SIZE, MAX_VIDEO_SIZE, MAX_FILE_SIZE to your desired value.
  4. Run nano backend > php > local.ini
  5. Change the value of upload_max_filesize and post_max_size.
  6. Restart the server. Depends on your server, how to do so. If you are using docker, please stop the docker container by running the docker-compose down in the root of the project. Then run docker-compose up -d to start the container.