Echo JS 0.11.0

<~>

tracker1 1211 days ago. link 1 point
Two niggles...

First: The following is TypeScript, and not the current version.  While I've actually converted a lot of the projects I'm working on to TS, prefer most training examples in plain JS, also assigning the right type to the event would probably correct the any type casting.

    const file = (event.srcElement as any).files[0];
    ...
    const base64Str = btoa(reader.result as string);

Second: There's no mention of getting the correct mimetype and/or extension from the File interface.