Quantcast
Channel: Aryan Nava » Moodle
Viewing all articles
Browse latest Browse all 4

Maximum file upload size in Moodle

$
0
0

In Moodle 2.X, by default maximum upload file size is 2MB. How do you increase the max upload size for Moodle?

The solution which you see here apply to you if your Moodle is running in a Shared Hosting.  Right now my Moodle site is hosted at Bluehost.com and using cPanel.

1. Use your FTP client and connect to your Moodle server and open public_html folder.  In public_html folder you will find a file called php.in.  Click on php.in file and press edit button.

Editing PHP.INI fine in Moodle

2.  The php.in file which you open will have one line.  You need to add

upload_max_filesize = 20M
post_max_size = 20M

to your php.in file and save the file to your server.  If you want to increase the file size just change the numbers

Upload Max file Size  in Moodle

3.  Now login to your Moodle site as administrator
Go to Site Administration | Security | Site Policies | Maximum Uploaded file section

This specifies a maximum size that uploaded files can be throughout the whole site. This setting is limited by the PHP settings post_max_size and upload_max_filesize, as well as the Apache setting LimitRequestBody. In turn, maxbytes limits the range of sizes that can be chosen at course level or module level. If ‘Server Limit’ is chosen, the server maximum allowed by the server will be used.

Click on the drop down list and you should see your new maximum uploaded file size in Moodle.  Select your new maximum uploaded file size and click OK


maximum_uploaded_file_moodle

4. Also go to Course Administration | Edit Settings|  if you don’t see the new maximum uploaded file size , just click on the dropdown and apply new size 

edit_course_settings_maximum_upload_size


Filed under: Moodle Tagged: Maximum Upload File size, Moodle

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images