I have changed my php.ini file to make larger file uploads possible, but cannot seem to find a section in Moodle 1.7 in which I can change the site-wide settings for uploading files. Does it still exist or is there something else that one needs to do?
Site-wide settings for file upload size - where have they gone in 1.7?
Number of replies: 21Re: Site-wide settings for file upload size - where have they gone in 1.7?
You can change it with Administration > Modules > Activities
and select settings for Assignment and Forum.
Re: Site-wide settings for file upload size - where have they gone in 1.7?
Re: Site-wide settings for file upload size - where have they gone in 1.7?
I have used 32 MB. If you can only change it to 8 MB in moodle but want to have 100 MB check the following:
in apache (httpd.conf or
apache2.conf) set the LimitRequestBody to 0
or something like LimitRequestBody 104857600
in php.ini
upload_max_filesize = 100 M
post_max_size = 100 M
memory_limit = 100 M
You may also need to change in php.ini next values (add some 0)
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
Remember to reboot server to get those settings to work.
Re: Site-wide settings for file upload size - where have they gone in 1.7?
I have come upon this problem as well. I am running moodle 1.8
I made all of the above changes to php.ini
Neither my httpd.conf or apache2.conf had a line for LimitRequestBody, so i added it to httpd.conf with the 104857600 value.
Under Security > Site Policies, The max upload limit reflects the 104857600 value, however, under Modules > Activities > Assignments, the highest limit that can be set is 2MB.
When you try to upload an assignment it says the max size is 100MB, however, when you try to upload a file greater than 2MB, it returns the error : Course module is incorrect.
How can i force the modules to be in line with my apache, php, and site wide max upload size?
Re: Site-wide settings for file upload size - where have they gone in 1.7?
The connection was reset
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
I have version 1.8 installed on a Linux server (shared hosting). I changed the settings in security->sitepolicies to 41943040 (equals 40MB) for Mazimum Uploaded File size. I checked in the course settings and set it there also to 40 MB.
As I am in a shared environment I created a .htaccess file and set the following parameters
LimitRequestBody 41943040
php_value port_max_files 40M
php_value upload_max_files 40M
both in the moodle and moodledata directories.
I can upload large files on to the server using ftp.
Does anyone know what I am doing wrong?
Re: Site-wide settings for file upload size - where have they gone in 1.7?
Re: Site-wide settings for file upload size - where have they gone in 1.7?
I tried to put a php.ini in the files directory. It did not change anything for uploading using the files link form the course administration block. I will check with host provider on phpsuexec.
I played around with upload_max_filesize etc. It is really weird even if I set the file_uploads to off, still the same problem, but I also can still upload files smaller than 500KB.
I am at a loss. I don't know what else to do.
Re: Site-wide settings for file upload size - where have they gone in 1.7?
Not sure what the limit is, or even if there is such a thing, but I have one site quite happily running with a 250MB limit.
Guessing the 8MB limit you have hit is due to not changing the post_max_size (see the reply from Mauno).
H
Re: Site-wide settings for file upload size - where have they gone in 1.7?
The maximum uploaded file size in 1.7 may be changed via Administration > Security > Site policies. The maximum upload file size for particular activities may then be set as Mauno describes.
Re: Site-wide settings for file upload size - where have they gone in 1.7?
Thank you for that supplementary information, Helen!
And there is one more place to make it - course settings.
Re: Site-wide settings for file upload size - where have they gone in 1.7?

Re: Site-wide settings for file upload size - where have they gone in 1.7?
I am installing Moodle 1.8.2 on a new server via Fantastico - shared hosting so I don't seem to have access to the low level apache files mentioned here.
It won't let me upload a back up file from my other server as it says the limit is 2Mb
I have set the Maxbytes to 100000000 but that doesn't seem to have any effect
Can anyone tell what to do in this circumstance. (I am not VERY techy ;-
Thanks in advance
John
Re: Site-wide settings for file upload size - where have they gone in 1.7?
Upload Problems, please help
Here are my current settings :
Running Apache2 with PHP 5.2 on Ubuntu.
Moodle version 1.8.2
LimitRequestBody 0 in httpd.conf [I added this line in it asthe file was initially empty]
(in php.ini)
post_max_size 20M
upload_max_size 20M
My php.ini is at one place only. Some forum answers suggest copying it to several places. I am not sure where to copy though.
Then, Security>Site Policies> maximum upload size is 20971520 ( for 20M ).
However, I still get an upper limit of 2M in the course settings and hence, cant upload a document of bigger size.
I have restarted the server as well several times. No effect.
Someone kindly help me out. I have lost all hope of figuring this out.
Re: Upload Problems, please help
It seems that there is a lot of people with this problem. I've recently posted here:
http://moodle.org/mod/forum/discuss.php?d=104529
but there is still no answer. Maybe if you take a look at the post that can help you to see the other parameters that can affect your maximum upload file size.
Unfortunately, that is not working for me. I cannot even upload a 512KB file and I'm starting to despair because there is no solution.
Re: Upload Problems, please help
Listened to all the advise about changing settings in php.ini, messed around with moving files, but still have the same problems.
If someone finds a solution to this I'd be very grateful.
Re: Upload Problems, please help
I changed the Max file upload file size in the php.ini file in the /etc folder.
I then changed the maximum upload file size in Moodle under Admin/Security/Site Policy.
I then changed the max file size setting under Courses/Course Default Settings.
I am running Moodle 1.9
Re: Upload Problems, please help
Can someone tell me where is located the php.ini file, that needs to be modified?
Thanks in advance!!!!
Kata
Re: Upload Problems, please help
This will depend on a number of things. If you go to Administration > Server > PHP info it should tell you the location of your loaded php.ini file.
Jon
Re: Upload Problems, please help
Re: Upload Problems, please help
In the end I called the webserver tecnicians and they changed the value.
The FAQs will be surelly useful in the future!
Kata