mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-27 00:08:40 +00:00
11 lines
338 B
PHP
Executable File
11 lines
338 B
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
// @todo: is this chunked/streamed output or bulk output
|
|
// if it is streamed it is not working because of ob_* in the actual response rendering
|
|
|
|
$media = $this->getData('media');
|
|
|
|
$fp = \fopen(($media->isAbsolute ? '' : __DIR__ . '/../../../../') . $media->getPath(), 'r');
|
|
\fpassthru($fp);
|
|
\fclose($fp);
|