HowToMoodle BlogSubscribe to our Blog

How to upload large files to your Moodle site or Totara Learn site

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

Default size

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.

Size 500

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.

What Next

If you would like to get more out of your Moodle or Totara Learn, we want to help. Call us on 0330 660 1111 or contact us via

Ask us about themes, hosting, training, content creation for your e-learning site

Share this: