HFP-1145 Remove base64 data decoding since we now use Blob

content-upgrade-on-upload
Frode Petterson 2018-12-20 16:17:14 +01:00
parent 96694e4c70
commit 2b474699b2
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}