From c0896468a70cbcf32be0d1b9e6477d3b317e7190 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 9 May 2026 13:10:07 +0300 Subject: [PATCH] Update: 2026-05-09 13:10:07 --- app/modules_app/batches/upload_image.php | 4 +- public/shell.php | 163 +++++++++++++++++++---- 2 files changed, 136 insertions(+), 31 deletions(-) diff --git a/app/modules_app/batches/upload_image.php b/app/modules_app/batches/upload_image.php index 3bc4dbd..76576fd 100644 --- a/app/modules_app/batches/upload_image.php +++ b/app/modules_app/batches/upload_image.php @@ -47,10 +47,10 @@ if ($batch['status'] !== 'uploading') { } // 3. Validate file type -$allowedTypes = ['image/jpeg', 'image/png', 'image/webp', 'image/heic', 'image/heif']; +$allowedTypes = ['image/jpeg', 'image/png', 'image/webp', 'image/heic', 'image/heif', 'application/pdf']; $mimeType = $_FILES['image']['type']; if (!in_array($mimeType, $allowedTypes)) { - json_error('نوع الملف غير مدعوم. المسموح: JPEG, PNG, WebP, HEIC', 422); + json_error('نوع الملف غير مدعوم. المسموح: صور و PDF', 422); } // 4. Validate file size (max 10MB) diff --git a/public/shell.php b/public/shell.php index 82c29fd..1572809 100644 --- a/public/shell.php +++ b/public/shell.php @@ -1137,6 +1137,9 @@ + @@ -1925,6 +1928,57 @@ + + +