diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 26e3e01..56f0e46 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -311,13 +311,7 @@ class H5PDefaultStorage implements \H5PFileStorage { // Add filename to path $path .= '/' . $file->getName(); - $fileData = $file->getData(); - if ($fileData) { - file_put_contents($path, $fileData); - } - else { - copy($_FILES['file']['tmp_name'], $path); - } + copy($_FILES['file']['tmp_name'], $path); return $file; }