devianl2 / laravel-scorm

Laravel scorm package
MIT License
38 stars 20 forks source link

upload the same scorm will be replace old scorm with same name #29

Open cecep31 opened 1 year ago

cecep31 commented 1 year ago

when we try to upload some scrom with same name will be replace old scorm with same scorm file

DeeJ commented 1 month ago

Having the same problem. We have a client who generated a bunch of scorm packages based off a starting template so when they finished they all had the same identifier. Uploading the next scorm package just overwrote the original once instead of uploading the new one & leaving the old one in place (as they are different scorm modules with different learning content).

We've extended the ScormManager class without our own custom one that overwrites the uploadScormArchive function with our own version that removed the check if a scorm record already exists with that identifier / origin_file. Not sure if this will have any ongoing unintended consequences though.