Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
This repository was archived by the owner on May 25, 2021. It is now read-only.

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

Description

@angelaraya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions