Grumbletweezer (28th March 2009)
We're stuck with uploading files into Moodle via the usual system - here's a cut and paste of where we are so far:
-------------------------------
We've been though the stuff in the FAQs to get out Moodle uploading large files and set our limit to 60mb. When I try to up load a file (either through the course main page Files link or through Add an activity) files below about 500k go straight up - very fast- and appear in the file list on Moodle. Files over that cause the main course Files link upload to just sit there, doing it via Add an activity causes the upload window to go blank.
I've made sure the course limit is set to 60mb and, in both cases, the upload window says the limit is 60mb. Is there some other place in settings we've missed that might cause this problem?
We're on version 1.9.4+
------------------------------------
Our htaccess file currently has
php_value post_max_size 70M
php_value upload_max_filesize 60M
AcceptPathInfo on
I came across another setting which was at "Server limit" and I changed to 60MB. And also a "Module > Assignment > Maximum assignment size" which was 1Mb, I set that to 60Mb. But it didn't fix things. The Maximum size on the "upload a file" dialog says 60Mb. So I tried to upload a 2.mb file, got "Page cannot be displayed", in an inelegant IE error box. A 21kb file worked fine. Prompted by a moodle.org forum post, I double-checked in the database, table mdl_config, and the settings there are fine: 62914560 for both maxbytes and assignment_maxbytes. Likewise I have confirmed via the builtin phpinfo page that the php.ini values (from htaccess) have been applied. (Some people urge you to restart the server. I don't know how I can do this anyway, and the FAQ explicitly says that it is not necessary).
-------------------------------------------------------------------
It's also been suggested: You may also want to check what max_execution_time is set to and increase that. But we haven't tried that yet.
----------------------------------------------------
Does anything leap out at anyone here that might be the cause.
Grumbs
I presume you have also set 'Maximum Uploaded File Size' setting under:
http://YOUR-URL/moodle/admin/setting...n=sitepolicies
To: Server Limit
-----
Aside to that I have had this problem before where the internet connection times out after a certain length of time during a file upload, its as if it detects inactivity and doesn't continue uploading the file.
Grumbletweezer (28th March 2009)

make sure you set the upload_max_filesize in the php.ini
Grumbletweezer (28th March 2009)
Grumbletweezer (28th March 2009)

AFAIK there are 3 places where limits can be set; the php.ini, the .htaccess file and in moodle itself. If you set the upload_max_filesize to something very high, you may need to tune other parameters to prevent timeouts. take a look here:
PHP File Upload Configuration
Grumbletweezer (28th March 2009), mb2k01 (27th March 2009)
If you have made changes to Apache did you restart the Apache service?
Grumbletweezer (28th March 2009)

Thinking about it, I might be tempted to keep the 60mb limit.
I doubt you really want lots of staff uploading 300mb files - this is a webserver after all and I'm sure the kids aren't going to be too happy if they have to spend all evening downloading oversized files !
The limit might actually be beneficial and give you a bit more control.
what you could do is use sftp to upload the larger files such as the scorm applications, it's a bit tricky finding the course in the moodledata directory unless you have a particular file to search for, but once you've found the course it's dead easy to use sftp (of smb/cifs if you have a windowz server) to upload the files.
In that case they may also not allow you to modify any of PHP's settings through the .htaccess file. I have come across hosts like this; I had to contact their technical support team to resolve the issue.
EDIT: This could mean that your settings aren't being applied. Can you create a phpinfo() file and see what the max file upload sizes are? Simply create a .php text file with the following contents:
Regards,Code:<?php phpinfo(); ?>
Ross Wilson
Last edited by rosswilson; 28th March 2009 at 04:28 PM.
Grumbletweezer (29th March 2009)
Just to say that we still haven't got to the bottom of this, but we've switched to using FTP in the mean time. Thanks for all your suggestions so far :O)
As the main face of the VLE to staff, I ask any larger files be put on the shared area for me to evaluate and upload via FTP. Keeps things under control because I hate the idea of too much being uploaded for their own 'shared area' kind of use, because that is what most of them think![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)