assignment_maxbytes higher than 2 megabytes?

assignment_maxbytes higher than 2 megabytes?

by Arnor Kristjansson -
Number of replies: 2
Can I somehow increase the assignment_maxbytes value to something higher than 2 megabytes? The teachers are asking for 6MB...
Average of ratings: -
In reply to Arnor Kristjansson

Re: assignment_maxbytes higher than 2 megabytes?

by Claudia Scholz -
See the Frequently-Asked Questions "glossary" under
"How do the limits on uploaded files work?"

Martin explains where/how to change the settings.
Your upload limit might be constrained by your own server settings, admin settings in Moodle or Module-level limits

Here's a copy of Martin's answer:

File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.

1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache's /etc/httpd/conf/httpd.conf and/or /etc/httpd/conf.d/php.conf with the upload size in bytes (different operating systems may have these files in different locations):

LimitRequestBody 10485760

2. PHP also has two more byte limits, which you can set in php.ini and sometimes in a .htaccess file:

php_value upload_max_filesize 50000000
php_value post_max_size 50000000

3. Moodle 1.2 has a site-wide limit called maxbytes that you can set in the Admin -> Configuration -> Variables page.

4. Each course can also set a limit - teachers can do this on the Course Settings page.

5. Activity modules like forums and assignments have their own limits which you set when adding or editing the activity.


In reply to Claudia Scholz

Re: assignment_maxbytes higher than 2 megabytes?

by Arnor Kristjansson -
Thank you Claudia. I set apache and php's limits but moodle sets the max values from popupmenus. Can I safely change those and then how?

A.