|
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.
angular-file-validator/projects/ng-file-validator-lib/src/lib/file-validator.service.ts
Line 33 in 056c318
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.