solid-react-components icon indicating copy to clipboard operation
solid-react-components copied to clipboard

There's no way for the Uploader to accept any extension or files without extension.

Open angelaraya opened this issue 5 years ago • 0 comments

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);
  };

angelaraya avatar Feb 03 '20 20:02 angelaraya