private static function FlmngrServer::reqFileOriginal in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
1 call to FlmngrServer::reqFileOriginal()
- FlmngrServer::flmngrRequest in vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php
File
- vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php, line 250
Class
Namespace
EdSDK\FlmngrServerCode
private static function reqFileOriginal($config) {
$filePath = $_GET['f'];
try {
$fileSystem = new FMDiskFileSystem($config);
list($mimeType, $f) = $fileSystem
->getImageOriginal($filePath);
header('Content-Type:' . $mimeType);
fpassthru($f);
die;
} catch (MessageException $e) {
return new Response($e
->getFailMessage(), NULL);
}
}