CHANGE_Mail_template_filename_issue - VADIVEL J 2025-10-14

This commit is contained in:
vadivelJ96 2025-10-14 10:39:52 +05:30
parent 8578c32913
commit f48bb15264

View File

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