Fix product image upload — ob_end_clean() before JSON response, fix uploads dir permissions

This commit is contained in:
2026-06-14 15:44:25 +00:00
parent 602bc77cdd
commit 5058da704a
+1
View File
@@ -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'])) {