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 @@ + + +