Hi All,
I'm using Moodle 2.8.7 and having trouble uploading scorm files over 100M, smaller files are accepted by moodle but over 100MB it just stops with a "Error connecting to the server" message after 2 attepts to upload when using the drag and drop mode. If using the file picker mode it uploads about 25 percent of the to start again a few times and then just stays indefinetly in a loop showing the working circle icon.
I have set all user permissions to allow 500M uploads.
Searching for the error I found it to be the error branch of the following code in lib/form/dndupload.js
847 xhr.onreadystatechange = function() { // Process the server response
848 if (xhr.readyState == 4) {
849 if (xhr.status == 200) {
.....
870 } else {
871 self.print_msg(M.util.get_string('serverconnection', 'error'), 'error');
872 self.uploadfinished();
873 }
where the 4 is XMLHttpRequest.readState property "DONE" and 200 is HTTP 200 "OK"
Has anyone experienced a similar problem?
Regards,
Pato.
my settings:
1. /etc/httpd/conf/httpd.conf
<IfModule mod_php5.c>
php_value upload_max_filesize=500M
php_value post_max_size=500M
</IfModule>
<VirtualHost *:80>
ServerName dev.someplace.org
ServerAdmin webmaster@someplace.org
DocumentRoot /var/www/moodle
ErrorDocument 503 /mantencion/index.html
LimitRequestBody 524288000
</VirtualHost>
2. /etc/php.ini
; Maximum execution time of each script, in seconds
max_execution_time = 600
; Maximum size of POST data that PHP will accept.
post_max_size = 500M
; Maximum allowed size for uploaded files.
upload_max_filesize = 500M
References:
The XMLHttpRequest.readyState property returns the state an XMLHttpRequest client is in. An XHR client exists in one of the following states:
Value State Description
0 UNSENT Client has been created. open() not called yet.
1 OPENED open() has been called.
2 HEADERS_RECEIVED send() has been called, and headers and status are available.
3 LOADING Downloading; responseText holds partial data.
4 DONE The operation is complete.
source: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState