When i am logged in as administrator i can add different file types but when i try to add a 70mb zip file it fails with error 'Error connecting to the server'. Prior to the upgrade to 3.10 this was fine. I have changed the upload limit in php.ini from 40M to 500M but no joy. Any suggestions?
If you changed the file upload from 40M to 500M, then prior to the upgrade you could not have uploaded a 70MB file, as you suggest.
I am not the expert in this, but I believe that the maximum file upload is controlled within php.ini, then your Moodle site, then by your course, and finally an activity. A good place to begin probing is on "File upload size" in the Moodle docs.
I am not the expert in this, but I believe that the maximum file upload is controlled within php.ini, then your Moodle site, then by your course, and finally an activity. A good place to begin probing is on "File upload size" in the Moodle docs.
Hi Rick. It was 500M prior to the upgrade. On 3.7 we had no issues uploading files up to 500M. Now on 3.10 i have gone through the settings for upload in php.ini
Here are my current settings:
post_max_size = 500M
upload_max_filesize = 500M
I have restarted IIS. I'm running out of ideas. Still get the error Error connecting to server. Of note i can upload any other type of file if it's a few MB no problem.
Here are my current settings:
post_max_size = 500M
upload_max_filesize = 500M
I have restarted IIS. I'm running out of ideas. Still get the error Error connecting to server. Of note i can upload any other type of file if it's a few MB no problem.
IIS? That's an important detail when asking for help as most Moodle servers are Apache or Nginx.
Is this a new server? Or a new website in IIS? IIS has a default transfer limit of 30000000 bytes, i.e. just under 30 MB, set in system.webServer/security/requestFiltering/requestLimits/maxAllowedContentLength.
This can be set at server level as well as for individual websites.
Your advice fixed my issue! Many thanks.
You also have to change the post_max_size in your php.ini
In reply to David Ross
Re: SInce upgrade from 3.7 to 3.10 can not upload files
by Visvanath Ratnaweera -