diff --git a/src/core/emulator/providers/file.ts b/src/core/emulator/providers/file.ts index 27a64c645..c0d20b98b 100644 --- a/src/core/emulator/providers/file.ts +++ b/src/core/emulator/providers/file.ts @@ -747,7 +747,7 @@ export class FileMock extends File { return new Promise((resolve, reject): void => { writer.onerror = reject; - writer.onwrite = (): void => { + writer.onwriteend = (): void => { if (writtenSize < data.size) { writeNextChunk(); } else {