fix(fixminio): stream image from minio
Some checks failed
Cadoles/nineskeletor/pipeline/pr-master There was a failure building this commit
Cadoles/nineskeletor/pipeline/head There was a failure building this commit

This commit is contained in:
2022-10-10 10:25:38 +02:00
parent cb766ee2f9
commit 1661d73631
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;
}