If you are uploading a large file or you need to complete a backup of a large course you may need to increase the maximum file upload limit to be larger than the standard size of 250MB.
To increase the maximum file size you need to make a change to the ‘php.ini’ file and add the below lines, the value can be changed depending on the file size you wish to allow.
post_max_size = 500M
upload_max_filesize = 500M
You can also make a change to the ‘.htaccess’ file to do the same job, the lines you need to add are below, and again the value can be changed depending on the file size you wish to allow.
php_value upload_max_filesize = 500M
php_value post_max_size = 500M
If you wish to change the max file size to a smaller size you can do so without changing the php.ini or .htaccess file by going to your Moodle site > Site administration > Security > Site policies and change the ‘Maximum uploaded file size’ to your desired size.
The previous default size of 250MB will not be available because the new default will be the value you have set in either the php.ini or .htaccess file.
If you wish to revert the changes of the max file size just delete the lines of code which you added and save the file.
Worried your LMS isn't up to scratch?
We'll give you a detailed, independent review of your self-hosted Moodle or Totara Learn site, checking through the configuration and environment of your LMS, and picking up any common problems that your LMS might have.
So if you think your LMS might need a tune-up, just give us a shout and we'll show you what we can do.
The Hubken Solution comprises powerful, flexible and tailored Learning Management System (LMS) services for organisations of all sizes. Leveraging the power of Moodle or Totara platforms we provide you with the tools to achieve outstanding eLearning outcomes, supporting you in areas including LMS hosting, installation, user training, content development, reporting and more.