mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-06-30 17:50:32 -05:00
Fix product image upload — ob_end_clean() before JSON response, fix uploads dir permissions
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user