Closed juan-cortizas-ponte closed 1 year ago
I just added a PR about it https://github.com/chamilo/chamilo-lms/pull/4439 , the scorm folder keeps the name, so it is possible to update now.
Strange, as I managed localy and distantly to upload and modify SCORM packages both from the internal Chamilo's authoring tool and an extra vendor tool. 2 things I had to modify thought: 1- In configuration.php there are SCORM parts that are false by default, I turned them to true. 2- In php.ini of my server, I had to change the post_max_size value as it was too low.
There was also a course_import.php file amended. It's mainly used for csv matter, but I uploaded the patch without any trouble. I hope this helps.
It is now working fine, I just accepted PR #4439
Describe
The update SCORM feature, on "Learning paths" list, does not work since this commit that adds the bigupload lib. Chamilo does not create anymore a folder with the zip original name at app/courses/{course_code}/scorm/, but a folder with a random name. So when you try to update the SCORM, the name of the original zip does not match the folder name that Chamilo creates and the update process fail.
To Reproduce
Expected behavior
The behavior when importing a SCORM should be the same as before the commit 28fee3c73168c67a024a526f4d37c422633c4270.
The folder created when importing the SCORM should have the same name as the zip file
Screenshots
The update tool location:
Debugging the import of a new SCORM on lp_upload.php, the SCORM original name is "scorm12-120621-271.zip":
Debugging the import of a new SCORM on scorm.class.php:
Debugging the import of a new SCORM on scorm.class.php:
Uploading the same SCORM zip file again as an update of the previously imported, path names check fail:
Error:
Desktop:
Desktop:
Server
Server