HFP-1145 Remove base64 data decoding since we now use Blob
parent
96694e4c70
commit
2b474699b2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue