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
...@@ -38,11 +38,13 @@ const allowedFileTypes = [ ...@@ -38,11 +38,13 @@ const allowedFileTypes = [
const allowedFileEnds = ['.zip', '.jpeg', '.jpg', '.jpe', '.png']; const allowedFileEnds = ['.zip', '.jpeg', '.jpg', '.jpe', '.png'];
function validateFileName(fileNameToValidate) { function validateFileName(fileNameToValidate) {
return ( return true;
allowedFileEnds.find((typeName) => {
return fileNameToValidate.toLowerCase().endsWith(typeName); // return (
}).length > 0 // allowedFileEnds.find((typeName) => {
); // return fileNameToValidate.toLowerCase().endsWith(typeName);
// }).length > 0
// );
} }
// in megabytes // in megabytes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment