laravel-scorm
laravel-scorm copied to clipboard
Fix: Move the deleteScormFolder() method call to the deleteScorm() me…
When calling the method
public function uploadScormArchive(UploadedFile $file, $uuid = null)
It calls within it the method:
private function saveScorm($file, $filename, $uuid = null)
Which calls the method:
private function generateScorm($file)
Which calls the unzipper method on the scormDisk object. The scorm path is cleared within the method body before the new content is made available.
As deleteScormData is called further down in the uploadScormArchive method, all content is removed after a successful upload.
@devianl2 can someone do a pull?