Skip to content

Why the File Reader is neccesary? #17

@blogcraft

Description

@blogcraft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions