solid-react-components
solid-react-components copied to clipboard
There's no way for the Uploader to accept any extension or files without extension.
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);
};