FIX_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-02-13 18:08:54 +05:30
parent 415c272bdf
commit 69754588d9
2 changed files with 6 additions and 4 deletions

View File

@ -1036,12 +1036,13 @@ class ClientController extends AdminController
// ] // ]
// ], // ],
'client_logo' => [ 'client_logo' => [
'label' => 'Client Logo',
'rules' => 'permit_empty|is_image[client_logo]|max_size[client_logo,200]|ext_in[client_logo,jpg,jpeg,png]|max_dims[client_logo,100,100]', 'rules' => 'permit_empty|is_image[client_logo]|max_size[client_logo,200]|ext_in[client_logo,jpg,jpeg,png]|max_dims[client_logo,100,100]',
'errors' => [ 'errors' => [
'is_image' => 'The uploaded file must be an image', 'is_image' => 'Please upload a valid image file.',
'max_size' => 'File size should not exceed 200 KB', 'max_size' => 'The logo is too heavy (Max 200KB).',
'ext_in' => 'Allowed file types: jpg, jpeg, png', 'ext_in' => 'Only JPG, JPEG, and PNG files are allowed.',
'max_dims' => 'Image dimensions must be 100 x 100 pixels', 'max_dims' => 'The logo must be no larger than 100x100 pixels.',
] ]
], ],
]; ];

View File

@ -221,6 +221,7 @@ input:checked + .slider:before {
$(document).ready(function() { $(document).ready(function() {
$('#client_logo').change(function() { $('#client_logo').change(function() {
validateFile(this); validateFile(this);
return;
}); });
$('#parent_client_id').select2(); $('#parent_client_id').select2();
}); });