Description
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
- Upload a new SCORM zip file
- Click on the update icon for the scorm uploaded
- Select again the SCORM zip file
- See error
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
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:
Desktop:
- OS: Windows 10
- Browser Firefox 105.0.3 (64-bit)
Desktop:
- OS: Windows 10
- Browser Chrome 106.0.5249.119 (64 bits)
Server
- OS: Debian GNU/Linux 10 (buster)
- Version of Chamilo: 1.11.x of 2022-06-22
- Version of PHP: 7.2.30
Server
- OS: Windows 10
- Version of Chamilo: 1.11.x of 2022-10-20
- Version of PHP: 7.2.31