CHANGE_Mail_template_filename_issue - VADIVEL J 2025-10-14

This commit is contained in:
vadivelJ96 2025-10-14 10:40:39 +05:30
parent 726764b50f
commit 19c3c12f58

View File

@ -57,6 +57,7 @@ if (!function_exists('file_Upload')) {
if ($fileToUpload !== null && $fileToUpload->isValid() && !$fileToUpload->hasMoved()) {
$fileToUpload->move($filepath);
$fileName = $fileToUpload->getName();
$fileName = preg_replace('/[\s\x{00A0}\x{200B}-\x{200D}\x{FEFF}]/u', '', $fileName);
return $fileName;
} else {
return "";