This commit is contained in:
SamSys
2025-04-27 21:24:09 +03:30
3 changed files with 6 additions and 6 deletions

View File

@@ -850,8 +850,8 @@ function attachFileChangeHandler(fileInput, id, boxClass) {
e.preventDefault();
var fileInputFile = fileInput.files[0];
if (fileInputFile.size > 5000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
if (fileInputFile.size > 50000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
$(`#Command_Document${id}`).val('');
return;
}

View File

@@ -546,8 +546,8 @@ function attachFileChangeHandler(fileInput, index) {
$(fileInput).off('change').on('change', function () {
let file = fileInput.files[0];
if (file.size > 5000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
if (file.size > 50000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
$(`#EditTask_Document${index}`).val('');
return;
}

View File

@@ -626,8 +626,8 @@ function attachFileChangeHandler(fileInput, id, boxClass) {
e.preventDefault();
var fileInputFile = fileInput.files[0];
if (fileInputFile.size > 5000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
if (fileInputFile.size > 50000000) {
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
$(`#Command_Document${id}`).val('');
return;
}