mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -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 New Issue
Block a user