From 7460cc0fe36a72675eda69ce3ea036d2dd61b7a7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 20 Jun 2022 19:57:13 +0200 Subject: [PATCH] Allow file drop without supported mime type. --- frontend/src/app/framework/angular/forms/file-drop.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/framework/angular/forms/file-drop.directive.ts b/frontend/src/app/framework/angular/forms/file-drop.directive.ts index e57658b84..87f4080a2 100644 --- a/frontend/src/app/framework/angular/forms/file-drop.directive.ts +++ b/frontend/src/app/framework/angular/forms/file-drop.directive.ts @@ -128,7 +128,7 @@ export class FileDropDirective { for (const item of items) { const file = item.getAsFile(); - if (file && !!file.type && this.isAllowedFile(file)) { + if (file && this.isAllowedFile(file)) { files.push(file); } }