fix(fixminio): stream image from minio (#6)
Some checks reported errors
Cadoles/nineskeletor/pipeline/head Something is wrong with the build of this commit

fix load image from minio

Co-authored-by: Arnaud Fornerot <afornerot@cadoles.com>
Reviewed-on: #6
This commit is contained in:
2022-10-24 13:47:43 +02:00
parent cb766ee2f9
commit 928109fdf5
2 changed files with 26 additions and 2 deletions

View File

@ -73,8 +73,7 @@ class MinioController extends AbstractController
}
// C'est du contenu dynamique on download depuis minio
else {
$filePath = $this->minio->download($file, $file, true);
$content = file_get_contents($filePath);
return new Response($this->minio->image($file, $file));
}
break;
}