diff --git a/src/matrix/room/AttachmentUpload.js b/src/matrix/room/AttachmentUpload.js index 013bf150..75a5bfb1 100644 --- a/src/matrix/room/AttachmentUpload.js +++ b/src/matrix/room/AttachmentUpload.js @@ -100,10 +100,10 @@ export class AttachmentUpload { } let prefix = urlPath.substr(0, urlPath.lastIndexOf("url")); setPath(`${prefix}info.size`, content, this._transferredBlob.size); - setPath(`${prefix}info.mimetype`, content, this._transferredBlob.mimeType); + setPath(`${prefix}info.mimetype`, content, this._unencryptedBlob.mimeType); if (this._isEncrypted) { setPath(`${prefix}file`, content, Object.assign(this._encryptionInfo, { - mimetype: this._transferredBlob.mimeType, + mimetype: this._unencryptedBlob.mimeType, url: this._mxcUrl })); } else {