Skip to content

Fix: Move the deleteScormFolder() method call to the deleteScorm() me… #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

Kreshnik
Copy link

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.

…thod.

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.
@Kreshnik
Copy link
Author

@devianl2 can someone do a pull?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant