From 60f6f2133febcbf7562cde4c6c9e1b862965be77 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 5 Nov 2023 07:29:01 -0500 Subject: [PATCH] image view --- www-api/app/Controllers/WrenchMedia.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchMedia.php b/www-api/app/Controllers/WrenchMedia.php index b9a988d3..52b00fe6 100644 --- a/www-api/app/Controllers/WrenchMedia.php +++ b/www-api/app/Controllers/WrenchMedia.php @@ -69,9 +69,16 @@ class WrenchMedia extends BaseController } else{ - return 0; + // return 0; for now - no session } + $file = 'books.png'; + // header('Content-Type: image/jpeg'); + header('Content-Type: image/png'); + readfile($file); + + exit(); + //We can check cache for the file or // OR