Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed isImage() to return false for WMF files
As the WMF images can not be viewed in HTML, they should not be marked as image type.
While uploading WMF files VueFileAgent did not update its value.
  • Loading branch information
Drackokacka authored Feb 15, 2022
commit 632080025b11a67db17fe90563e71034f565699e
2 changes: 1 addition & 1 deletion src/lib/file-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class FileRecord {
}

public isImage(): boolean {
return this.file && !!this.file.type.match(/image((?!vnd).)*$/i);
return this.file && this.file.type !== 'image/x-wmf' && !!this.file.type.match(/image((?!vnd).)*$/i);
}

public isVideo(): boolean {
Expand Down