We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30be1e2 commit e9bdd35Copy full SHA for e9bdd35
src/packages/media/media/components/input-upload-field/input-upload-field.element.ts
@@ -95,7 +95,7 @@ export class UmbInputUploadFieldElement extends UmbLitElement {
95
96
// Check for an exact match
97
const exactMatch = this.#previewers.find((preview) => {
98
- return preview.forMimeTypes.find((type) => type === mimeType);
+ return preview.forMimeTypes.includes(mimeType);
99
});
100
if (exactMatch) return exactMatch.alias;
101
0 commit comments