Uploaded file size configuration
To change the limit of maximum size of uploaded file, please follow these steps
For cPanel
- Log into your cPanel account
- Go to the File Manager
- Open the config > constants.php file
- Update the value of MAX_IMAGE_SIZE, MAX_VIDEO_SIZE, MAX_FILE_SIZE to your desired value.
- Right-click on the .htaccess file and select "Edit"
- Add these following line to the file:
- Save the changes and close the file
- Refresh the website to see the changes take effect
php_value memory_limit 10M
php_value post_max_size 30M
php_value upload_max_filesize 10M
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
- SSH to your server
- Open the backend > config > constants.php file
- Update the value of MAX_IMAGE_SIZE, MAX_VIDEO_SIZE, MAX_FILE_SIZE to your desired value.
- Run nano backend > php > local.ini
- Change the value of upload_max_filesize and post_max_size.
- 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 rundocker-compose up -d
to start the container.