From 2b474699b27eab3b6ff9b1516d084b9392f58ab8 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 20 Dec 2018 16:17:14 +0100 Subject: [PATCH] HFP-1145 Remove base64 data decoding since we now use Blob --- h5p-default-storage.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; }