The file uploader will always try to match from a list of extensions. Files without extension will fail validation. Also can't pass something like *.* for any file extension.
validateAcceptFiles = (accept: String, type: String) => {
const extensions = accept.split(',');
return extensions.find(ext => extension(type.trim()) === ext);
};
The file uploader will always try to match from a list of extensions. Files without extension will fail validation. Also can't pass something like
*.*for any file extension.