diff --git a/resources/js/helpers/media.ts b/resources/js/helpers/media.ts index 3500117..0dd192b 100644 --- a/resources/js/helpers/media.ts +++ b/resources/js/helpers/media.ts @@ -35,6 +35,10 @@ export const mimeMatches = ( mimeExpected: string, mimeToCheck: string, ): boolean => { + if (mimeExpected.length == 0) { + mimeExpected = "*"; + } + const escapedExpectation = mimeExpected.replace( /[.*+?^${}()|[\]\\]/g, "\\$&",