Maximum upload quota

Maximum upload quota

Robert Bashforth發表於
Number of replies: 2

Hi folks, I think that I may have set a max upload size of 2mb on the site. How do I upgrade this to 5mb? Can anyone help?

Kind regards,

Rob

評比平均分數: -
In reply to Robert Bashforth

Re: Maximum upload quota

Ciaran McGeeney發表於

Hi Rob

The first place to check is the Administration block. Security -> Site Policies -> and look for "Maximum Uploaded File Size". 

Teachers may also set the maximum file size by the course administration block.

The second place to check are the server files. The php.ini file has a limit which will override any other setting.

Hope this is of help

Ciarán

In reply to Robert Bashforth

Re: Maximum upload quota

Brian Pool發表於

There are two places to set the maximum filesize for an installation before you can change it in Moodle itself.

Navigate to and open (these instructions are for Apache2 on Ubuntu, your may be slightly different)

/etc/php5/apache2/php.ini  (

Go to the line 440 and edit

which is the main php5 configuration file.)

post_max_size = 8M

to what you need as a max.  I set 32M.

Next,  Go to line 545 and change

upload_max_filesize = 2M

to what you need as a max.   Again, I set 32M.

After that you need to restart Apache, and then edit the Moodle Maximum upload file size in Site Policies. 

Finally, individual course files sizes are set in the course settings.

Brian