diff --git a/src/services/FileTransfer/FileTransfer.ts b/src/services/FileTransfer/FileTransfer.ts index 0a4ea7a..b3b219a 100644 --- a/src/services/FileTransfer/FileTransfer.ts +++ b/src/services/FileTransfer/FileTransfer.ts @@ -135,10 +135,11 @@ export class FileTransfer { const encryptedFile = Object.setPrototypeOf( { - ...file, + lastModified: file.lastModified, name: file.name, size: encryptedSize(file.size), stream: () => tees.pop(), + type: file.type, }, File.prototype )