mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-31 17:58:42 +00:00
11 lines
313 B
PHP
11 lines
313 B
PHP
<?php
|
|
|
|
// @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);
|