From 5058da704adb21a6c81983f7b2136d04d2c7f432 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Sun, 14 Jun 2026 15:44:25 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20product=20image=20upload=20=E2=80=94=20ob?= =?UTF-8?q?=5Fend=5Fclean()=20before=20JSON=20response,=20fix=20uploads=20?= =?UTF-8?q?dir=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/upload-image.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/upload-image.php b/admin/upload-image.php index bc70e3b..f0ae933 100644 --- a/admin/upload-image.php +++ b/admin/upload-image.php @@ -4,6 +4,7 @@ */ require_once __DIR__ . '/includes/header.php'; +ob_end_clean(); header('Content-Type: application/json'); if ($_SERVER['REQUEST_METHOD'] !== 'POST' || empty($_FILES['image'])) {