-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
angular-file-validator/projects/ng-file-validator-lib/src/lib/file-validator.service.ts
Line 33 in 056c318
| const arr = new Uint8Array(fileReader.result as ArrayBuffer).subarray(0, 4); |
Why use a file reader to get the contentType when the file.type already has the contentType of the file.
This code as it stands cant know the difference between a .docx and an xlsx.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels