Skip to content
Snippets Groups Projects
Commit d47510a2 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

disable file validation

parent f791ceb9
No related branches found
No related tags found
No related merge requests found
Pipeline #6581 failed
......@@ -38,11 +38,13 @@ const allowedFileTypes = [
const allowedFileEnds = ['.zip', '.jpeg', '.jpg', '.jpe', '.png'];
function validateFileName(fileNameToValidate) {
return (
allowedFileEnds.find((typeName) => {
return fileNameToValidate.toLowerCase().endsWith(typeName);
}).length > 0
);
return true;
// return (
// allowedFileEnds.find((typeName) => {
// return fileNameToValidate.toLowerCase().endsWith(typeName);
// }).length > 0
// );
}
// in megabytes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment