Wrong error message when uploading a too big SCORM package
I wanted to upload a scorm package of 50Mo.
In the php.ini file, I'm allowed to upload a file of 10Mo or less.
The error message I've got when I upload my SCORM package is :
"The package you are trying to upload has an unknown format. Please check it uses one of the supported formats."
Updated by Hubert Borderiou over 8 years ago
the scorm file quota doesn't seem to be the same than the document quota.
Scorm files are unzipped in folder courses/COURSPOURLP/scorm
If you add a too big scorm file for the scorm quota, you've got the message "There is not enough space left in this course to uncompress the current package." That's fine. But where can we change the scorm file quota ?
If your php.ini (post_max_size and upload_max_filesize) prevent you from downloading the scorm file (because it is too big) you still have the message "The package you are trying to upload has an unknown format. Please check it uses one of the supported formats."
Updated by Yannick Warnier over 8 years ago
- Status changed from Needs testing to New
- Assignee deleted (
- Target version changed from 1.9 RC1 to 1.9.2
The SCORM quota is the same as the course documents quota.
Still missing the message change but not urgent, so moving to 1.9.2 (let's focus on the really important stuff for now)
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Julio Montoya to Yoselyn Castillo
- % Done changed from 100 to 80
I think that you should validate inside the import_package() function (in scorm.class.php and aicc.class.php), you should also check the space available in the course. you can check the file before uploading with the function in document.lib.php
Updated by Yoselyn Castillo over 8 years ago
- Assignee changed from Yoselyn Castillo to Julio Montoya
the validation in lp_upload.php occurs before calling import_package, i mean, if the post_max_size and upload_max_filesize are shorter than size of the package import package doesn't occur. Do you think it is necessary validate inside those functions?
Updated by Yoselyn Castillo about 8 years ago
- File upload-scorm-big.gif upload-scorm-big.gif added
- Status changed from Needs testing to Bug resolved
When the scorm package is bigger than the size allowed in php.ini configuration, the message has been sent to "The file is too big to upload." See the attachment upload-scorm-big.gif