forked from mystiq/hydrogen-web
this is fine actually, as it will get encrypted.
just don't pass it to the upload
This commit is contained in:
parent
41738ad660
commit
1dd46b875b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue