diff --git a/app/Views/client_basic_info.php b/app/Views/client_basic_info.php index 8a4084ce..b2ee57b5 100644 --- a/app/Views/client_basic_info.php +++ b/app/Views/client_basic_info.php @@ -375,6 +375,7 @@ input:checked + .slider:before { var fileExtension = file.name.split('.').pop().toLowerCase(); if (!allowedExtensions.includes(fileExtension) || file.size > 200 * 1024) { + toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); fileInput.value = ""; // Clear the file input document.getElementById("uploadPreview").src = "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"; // Remove the preview image } else { @@ -408,6 +409,7 @@ input:checked + .slider:before { if (fileSize > 200) { toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); $("#uploadPreview").attr("src", "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"); + input.value = ""; } // Check image dimensions diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index cb0f925f..f229cb95 100644 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -375,7 +375,7 @@
-
+ composer create-project laravel/laravel:^11.0 example-app

Carlos Crouch liked Admin 13 days ago @@ -502,7 +502,7 @@

- -