Compare commits

...

1 Commits

Author SHA1 Message Date
AL BOROM WARD 266b357752 Fixed typoo erroe
fixed the typoo error mentioned by teacher
2021-12-08 17:11:10 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ function is_valid_file_format($file)
'cvc', 'c', 'class', 'cpp', 'h', 'java', 'sh', 'swift', 'zip', 'rar', 'ods', 'xlr', 'bak', 'ico', 'swf'
);
utf8_encode($filename = $_FILES[$file]['name']);
$filename = utf8_encode($_FILES[$file]['name']);
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$result = in_array($ext, $allowed);
return $result;