this is fine actually, as it will get encrypted.

just don't pass it to the upload
This commit is contained in:
Bruno Windels 2020-11-13 19:22:06 +01:00
parent 41738ad660
commit 1dd46b875b

View File

@ -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 {