image paths

This commit is contained in:
CHIEFSOFT\ameye
2023-11-05 08:21:45 -05:00
parent e0383125bc
commit 1ec397a2bb
3 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ class WrenchMedia extends BaseController
$supportedSections = ['profile'=>100,'myfile'=>200,'contracts'=>300,'family'=>400,'jobs'=>500];
if (!array_key_exists($fileSection, $supportedSections)) {
log_message('critical', "Media gate Path GATE 003 - Fail Segment Types");
$file = 'error.png';
$file = FCPATH.'/assets/images/error.png';
header('Content-Type: image/png');
readfile($file);
exit();
@@ -84,7 +84,7 @@ class WrenchMedia extends BaseController
log_message('critical', "Media gate Path GATE 005 - Ready to File File ****");
$file = 'books.png';
$file = FCPATH.'/assets/images/books.png';
// header('Content-Type: image/jpeg');
header('Content-Type: image/png');
readfile($file);
Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB